From aa61a4e66e72c66e134f8ce9568a0cc09ccef1aa Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Sun, 15 Oct 2017 19:07:20 +0300 Subject: [PATCH] Py3 + added additional string output. --- chaos_monkey/model/host.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chaos_monkey/model/host.py b/chaos_monkey/model/host.py index da4fbf8e6..502f81ca9 100644 --- a/chaos_monkey/model/host.py +++ b/chaos_monkey/model/host.py @@ -34,12 +34,13 @@ class VictimHost(object): def __str__(self): victim = "Victim Host %s: " % self.ip_addr victim += "OS - [" - for k, v in self.os.iteritems(): + for k, v in self.os.items(): victim += "%s-%s " % (k, v) victim += "] Services - [" - for k, v in self.services.iteritems(): + for k, v in self.services.items(): victim += "%s-%s " % (k, v) victim += ']' + victim += "target monkey: %s" % self.monkey_exe return victim def set_default_server(self, default_server):