fixed spacing in actions.py; added try/except to add; adding logging to add
@@ -26,7 +26,9 @@ class Action:
branch="master", build=True, user=None, pw=None, groups=None,
version_alias=None, wild=None, remove_old=True, disable_old=True):
""" Add a new set of tool(s) """
+ self.logger.info("Starting: add")
status = (True, None)
+ try:
status = self.plugin.add(repo,
tools=tools,
overrides=overrides,
@@ -40,6 +42,11 @@ class Action:
wild=wild,
remove_old=remove_old,
disable_old=disable_old)
+ except Exception as e:
+ self.logger.error(str(e))
+ status = (False, e)
+ self.logger.info(status)
+ self.logger.info("Finished: add")
return status
def remove(self, repo=None, namespace=None, name=None, groups=None,
