forked from p15670423/monkey
Merge pull request #123 from goswami-rahul/patch-1
update __repr__ method in VictimHost class
This commit is contained in:
commit
e80e004fae
|
@ -2,7 +2,7 @@
|
|||
|
||||
Thanks for your interest in making the Monkey -- and therefore, your network -- a better place!
|
||||
|
||||
Are you about to report a bug? Sorry to hear it. Here's our [Issue tracker].
|
||||
Are you about to report a bug? Sorry to hear it. Here's our [Issue tracker](https://github.com/guardicore/monkey/issues).
|
||||
Please try to be as specific as you can about your problem; try to include steps
|
||||
to reproduce. While we'll try to help anyway, focusing us will help us help you faster.
|
||||
|
||||
|
|
|
@ -50,6 +50,6 @@ and follow the instructions at the readme files under [infection_monkey](infecti
|
|||
|
||||
License
|
||||
=======
|
||||
Copyright (c) 2017 Guardicore Ltd
|
||||
Copyright (c) Guardicore Ltd
|
||||
|
||||
See the [LICENSE](LICENSE) file for license rights and limitations (GPLv3).
|
||||
|
|
|
@ -29,7 +29,7 @@ class VictimHost(object):
|
|||
return self.ip_addr.__cmp__(other.ip_addr)
|
||||
|
||||
def __repr__(self):
|
||||
return "<VictimHost %s>" % self.ip_addr
|
||||
return "VictimHost({0!r})".format(self.ip_addr)
|
||||
|
||||
def __str__(self):
|
||||
victim = "Victim Host %s: " % self.ip_addr
|
||||
|
|
Loading…
Reference in New Issue