From 480fa30221540946dca0c7cc343f1134d9d033e3 Mon Sep 17 00:00:00 2001 From: midokate <31192798+midokate@users.noreply.github.com> Date: Fri, 4 Oct 2019 14:33:50 +0200 Subject: [PATCH] Update run-image --- contents/run-image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contents/run-image b/contents/run-image index 83b1415..c1ba7d0 100644 --- a/contents/run-image +++ b/contents/run-image @@ -34,7 +34,7 @@ possible_opts = ['add-host', 'blkio-weight', 'cap-add', 'cap-drop', 'cidfile', 'volume-from', 'ulimit', 'uts', 'tty', 'workdir', 'user'] OPTIONS = [] -for env_var_name, env_var_value in os.environ.iteritems(): +for env_var_name, env_var_value in os.environ.items(): if (env_var_name.startswith('RD_OPTION') or env_var_name.startswith('RD_NODE') or env_var_name.startswith('RD_JOB')) and \ @@ -97,7 +97,7 @@ p = Popen( while True: line = p.stdout.readline().rstrip() if line: - print line + print ( line ) if p.poll() is not None: break