Skip to content

Commit

Permalink
Helper fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cdo-defcon committed Mar 28, 2018
1 parent 87f13e2 commit ea2831d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atomshields/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ def install(self, software, uninstall = False):
elif osname in [self.__class__.OS_CENTOS, self.__class__.OS_REDHAT]:
command = "yum -y {action} {name}".format(action=action, name=software)
else:
raise Exception("Unknown OS: Try to install the packages '{p}' manually".format(p=packages))
raise Exception("Unknown OS: Try to install the packages '{p}' manually".format(p=software))

try:
self.command = command
self.execute()
except OSError as e:
if 'Permission denied' in e:
raise Exception("Permission denied: Try to install the packages '{p}' manually".format(p=packages))
raise Exception("Permission denied: Try to install the packages '{p}' manually".format(p=software))
else:
print e

Expand Down

0 comments on commit ea2831d

Please sign in to comment.