From 7033f6a796d717c2c49bfd4df2dc2461e82f3bf8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Ouellet Date: Mon, 28 Nov 2016 02:53:39 -0500 Subject: [PATCH] qvm-check: s/stdout/stderr/ --- qvm-tools/qvm-check | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qvm-tools/qvm-check b/qvm-tools/qvm-check index cc69113b..b1f8fc85 100755 --- a/qvm-tools/qvm-check +++ b/qvm-tools/qvm-check @@ -52,30 +52,30 @@ Specify no state options to check if VM exists""" vm = qvm_collection.get_vm_by_name(vmname) if vm is None: if options.verbose: - print >> sys.stdout, "A VM with the name '{0}' does not exist in the system!".format(vmname) + print >> sys.stderr, "A VM with the name '{0}' does not exist in the system!".format(vmname) exit(1) elif options.running: vm_state = not vm.is_running() if options.verbose: - print >> sys.stdout, "A VM with the name {0} is {1}running.".format(vmname, "not " * vm_state) + print >> sys.stderr, "A VM with the name {0} is {1}running.".format(vmname, "not " * vm_state) exit(vm_state) elif options.paused: vm_state = not vm.is_paused() if options.verbose: - print >> sys.stdout, "A VM with the name {0} is {1}paused.".format(vmname, "not " * vm_state) + print >> sys.stderr, "A VM with the name {0} is {1}paused.".format(vmname, "not " * vm_state) exit(vm_state) elif options.template: vm_state = not vm.is_template() if options.verbose: - print >> sys.stdout, "A VM with the name {0} is {1}a template.".format(vmname, "not " * vm_state) + print >> sys.stderr, "A VM with the name {0} is {1}a template.".format(vmname, "not " * vm_state) exit(vm_state) else: if options.verbose: - print >> sys.stdout, "A VM with the name '{0}' does exist.".format(vmname) + print >> sys.stderr, "A VM with the name '{0}' does exist.".format(vmname) exit(0) main()