Skip to content
Snippets Groups Projects
Commit 344ed911 authored by Marta Vila Fernandes's avatar Marta Vila Fernandes :game_die:
Browse files

try to get the new uuid

parent 2a4dd0d4
No related branches found
No related tags found
1 merge request!293get the uuid created for linuxsoft_systems
Pipeline #8546254 passed
...@@ -62,7 +62,11 @@ def get_uuids(input_data, uuid_names): ...@@ -62,7 +62,11 @@ def get_uuids(input_data, uuid_names):
cmd = f"subscription-manager register --activationkey {activation_key} --force --name {name} --org {org}" cmd = f"subscription-manager register --activationkey {activation_key} --force --name {name} --org {org}"
process = subprocess.Popen(cmd, stderr=subprocess.PIPE, shell=True, stdout=subprocess.PIPE) process = subprocess.Popen(cmd, stderr=subprocess.PIPE, shell=True, stdout=subprocess.PIPE)
out, err = process.communicate() out, err = process.communicate()
uuids.append(out['body']['uuid']) print(f"Output: {out}")
if err:
print(f"Error creating a new uuid: {err}")
sys.exit(1)
uuids.append(str(out).split('ID: ')[1].split('\n')[0])
break break
else: else:
uuids.append(entry.get('uuid')) uuids.append(entry.get('uuid'))
......
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