diff options
author | Bill Peck <bpeck@redhat.com> | 2014-06-26 10:42:11 -0400 |
---|---|---|
committer | Bill Peck <bpeck@redhat.com> | 2014-06-26 10:42:11 -0400 |
commit | f19958fd23ffb5f05b51b5e59137d2533cb4b572 (patch) | |
tree | 50060ac69a1a53741153bf5a16a7a343230a2279 | |
parent | 41647ca749eab7ada278e9bd75584504ec564940 (diff) | |
download | tests-f19958fd23ffb5f05b51b5e59137d2533cb4b572.tar.gz tests-f19958fd23ffb5f05b51b5e59137d2533cb4b572.tar.xz tests-f19958fd23ffb5f05b51b5e59137d2533cb4b572.zip |
redirect warnings to stderr.
-rwxr-xr-x | distribution/virt/import/get_guest_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distribution/virt/import/get_guest_info.py b/distribution/virt/import/get_guest_info.py index b184626..d171b1b 100755 --- a/distribution/virt/import/get_guest_info.py +++ b/distribution/virt/import/get_guest_info.py @@ -14,12 +14,12 @@ while xml_tries < 5: recipe_xml = proxy.get_my_recipe(dict(recipe_id=os.environ['RECIPEID'])) break except: - print "Couldn't get guestinfo from %s . sleeping %i secs" % (os.environ['LAB_CONTROLLER'] , interval) + sys.stderr.write("Couldn't get guestinfo from %s . sleeping %i secs" % (os.environ['LAB_CONTROLLER'] , interval)) time.sleep(interval) xml_tries += 1 if xml_tries == 5: - print "Can't get guestinfo from %s" % os.environ['LAB_CONTROLLER'] + sys.stderr.write("Can't get guestinfo from %s" % os.environ['LAB_CONTROLLER']) sys.exit(1) |