Fixup problem

This commit is contained in:
James Page 2014-11-10 16:35:23 +00:00
parent a368060f75
commit 604f4b5879
1 changed files with 3 additions and 3 deletions

View File

@ -56,10 +56,10 @@ CONFIG_FILES = [
class POWERProxy():
def __init__(self, user, ssh_key, hosts,
def __init__(self, user, hosts,
repository, password):
if None in [user, ssh_key, hosts, repository]:
raise Exception('Missing configuration')
if None in [user, hosts, repository]:
raise ValueError('Missing configuration')
self.user = user
self.hosts = hosts.split()
self.repository = repository