Skip to content
Snippets Groups Projects
Commit 5d2466ac authored by Alberto Colla's avatar Alberto Colla
Browse files

2021-08-19 AC: aligned to python3

parent 875f90e0
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,8 @@ import argparse
parser = argparse.ArgumentParser(description='Generate simplestreams metadata')
parser.add_argument('-r','--regions', nargs='+', help='List of regions: e.g. garr-ct1 garr-pa1 garr-na. default=[\'garr-ct1\', \'garr-pa1\', \'garr-na\']', default=garr-ct1, garr-pa1, garr-na, required=False)
parser.add_argument('-k','--keystone', help='Keystone endpoint: e.g. https://keystone.cloud.garr.it:5000/v3. default="https://keystone.cloud.garr.it:5000/v3"', default="https://keystone.cloud.garr.it:5000/v3", required=False)
parser.add_argument('-r','--regions', nargs='+', help='List of regions: e.g. -r garr-ct1 garr-pa1 garr-na \ndefault=garr-ct1 garr-pa1 garr-na', default=['garr-ct1', 'garr-pa1', 'garr-na'], required=False)
parser.add_argument('-k','--keystone', help='Keystone endpoint: e.g. https://keystone.cloud.garr.it:5000/v3 default="https://keystone.cloud.garr.it:5000/v3"', default="https://keystone.cloud.garr.it:5000/v3", required=False)
......@@ -27,7 +27,7 @@ print("KEYSTONE_ENDPOINT=",KEYSTONE_ENDPOINT)
config = None
with open('config.yml') as fh_config:
config = yaml.full_load(fh_config)
config = yaml.safe_load(fh_config)
fh_config.close()
# create the output directory
......@@ -98,7 +98,7 @@ with open(OUTPUT_DIR + "com.ubuntu.cloud-released-imagemetadata.json", 'w') as m
print("\n\nThe simplestream files have been generated in the output directory.\nYou can now upload them to the object store:")
print("\n\n cd output/simplestreams")
print("\n\n swift upload simplestreams .")
print("\n\n$ cd output/simplestreams")
print("$ swift upload simplestreams .")
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