Skip to content

Commit

Permalink
Display objects correctly as strings in log
Browse files Browse the repository at this point in the history
  • Loading branch information
yrkumar committed Sep 27, 2015
1 parent f736923 commit d14aead
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tangoObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def __init__(self, localFile, destFile):
self.localFile = localFile
self.destFile = destFile

def __repr__(self):
return "InputFile(localFile: %s, destFile: %s)" % (self.localFile,
self.destFile)


class TangoMachine():

Expand All @@ -54,6 +58,9 @@ def __init__(self, name="DefaultTestVM", image=None, vmms=None,
self.id = id
self.instance_id = id

def __repr__(self):
return "TangoMachine(image: %s, vmms: %s)" % (self.image, self.vmms)


class TangoJob():

Expand Down

0 comments on commit d14aead

Please sign in to comment.