Fixed issue #17: now, both annotation and annotation-file flags work properly on pydeploy (#20)
Signed-off-by: Pedro Escaleira <pedroescaleira@hotmail.com>
diff --git a/src/pydeploy/__main__.py b/src/pydeploy/__main__.py
index 46016b2..548358a 100644
--- a/src/pydeploy/__main__.py
+++ b/src/pydeploy/__main__.py
@@ -74,7 +74,7 @@
if args.annotation is not None:
composition['annotations'].extend([keyValue(a[0]) for a in args.annotation])
- if args.annotation is not None:
+ if args.annotation_file is not None:
composition['annotations'].extend([keyValueFromFile(a[0]) for a in args.annotation_file])
except Exception as err: