Skip to content

Commit

Permalink
Fix invalid scheduler setter. Addresses #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdc50 committed Oct 1, 2017
1 parent e67851f commit 93c74e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions condorpy/htcondor_object_base.py
Expand Up @@ -43,8 +43,8 @@ def __init__(self,
object.__setattr__(self, '_remote', None)
object.__setattr__(self, '_remote_id', None)
if host:
object.__setattr__(self, '_remote', RemoteClient(host, username, password, private_key, private_key_pass))
object.__setattr__(self, '_remote_id', uuid.uuid4().hex)
self.set_scheduler(host=host, username=username, password=password,
private_key=private_key, private_key_pass=private_key_pass)

@property
def cluster_id(self):
Expand Down Expand Up @@ -74,7 +74,8 @@ def set_scheduler(self, host, username='root', password=None, private_key=None,
Returns:
An RemoteClient representing the remote scheduler.
"""
object.__setattr__(self, '_remote', RemoteClient(host, username, password, private_key, private_key_pass))
self._remote = RemoteClient(host, username, password, private_key, private_key_pass)
self._remote_id = uuid.uuid4().hex

@property
def remote_input_files(self):
Expand Down

0 comments on commit 93c74e8

Please sign in to comment.