EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 0b9072aa authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

python3 related fix

parent 4473fac7
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,6 @@ from eoxserver.resources.coverages.registration.registrators.gdal import (
logger = logging.getLogger(__name__)
def setup_logging(verbosity):
# start logging setup
# get command line level
......@@ -92,7 +91,7 @@ def setup_logging(verbosity):
def set_gdal_swift_auth():
# parsing command line output of swift auth
auth_keys = subprocess.check_output(["swift", "auth"]).split("\n")
auth_keys = subprocess.check_output(["swift", "auth"]).decode(sys.stdout.encoding).split("\n")
storage_url = auth_keys[0].split("OS_STORAGE_URL=")[1]
auth_token = auth_keys[1].split("OS_AUTH_TOKEN=")[1]
# setting gdal config
......@@ -138,7 +137,6 @@ def get_product_type_and_level(metadata_item):
xp = '//gml:metaDataProperty/gsc:EarthObservationMetaData/eop:parentIdentifier/text()'
parent_identifier = tree.xpath(xp, namespaces=root.nsmap)[0]
print("parent identifier --->", parent_identifier)
if parent_identifier.endswith('Level_1'):
level = 'Level_1'
if parent_identifier.endswith('Level_3'):
......@@ -211,7 +209,6 @@ def registrar(
container=upload_container, options={"prefix": objects_prefix},
)
for page in list_parts_gen:
print(page)
if page["success"]:
for item in page["listing"]:
if item["name"].endswith(".xml"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment