commit ec3a17834c2c45f9d053590085177fda1fe977ac
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Wed Jan 11 17:47:29 2012 +0100
Assume using https protocol when not given
virt-who.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/virt-who.py b/virt-who.py
index f2aaf0b..ce5ce2e 100644
--- a/virt-who.py
+++ b/virt-who.py
@@ -265,6 +265,10 @@ if __name__ == '__main__':
if len(options.esx_password) == 0:
options.esx_password = os.getenv("VIRTWHO_ESX_PASSWORD",
"")
+ # Url must contain protocol (usualy https://)
+ if not "://" in options.esx_server:
+ options.esx_server = "https://%s" % options.esx_server
+
if options.interval < 0:
logger.warning("Interval is not positive number, ignoring")
options.interval = 0
Show replies by date