Skip to content
Snippets Groups Projects
Commit ee937b7a authored by www user for firmware's avatar www user for firmware
Browse files

fix pipeline id comparison

parent 47866878
No related branches found
No related tags found
No related merge requests found
...@@ -50,12 +50,14 @@ def find_latest_pipeline_id(): ...@@ -50,12 +50,14 @@ def find_latest_pipeline_id():
return None return None
if args.pipeline_id is None: if args.pipeline_id is None:
pipeline_id = find_latest_pipeline_id() pipeline_id = int(find_latest_pipeline_id())
if args.pipeline_id_file: if args.pipeline_id_file:
try: try:
with open(args.pipeline_id_file, "r") as pipeline_id_file: with open(args.pipeline_id_file, "r") as pipeline_id_file:
if pipeline_id == pipeline_id_file.read(): pipeline_id_from_file = int(pipeline_id_file.read())
if pipeline_id == pipeline_id_from_file:
print("Pipeline up to date") print("Pipeline up to date")
sys.exit(1) sys.exit(1)
except FileNotFoundError: except FileNotFoundError:
......
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