fix python2 compatibility
Provides a patch for python 2 compatibility when printing out the
session details.
diff --git a/thalerj/openbmctool.py b/thalerj/openbmctool.py
index 43e06b8..14e7995 100644
--- a/thalerj/openbmctool.py
+++ b/thalerj/openbmctool.py
@@ -2092,6 +2092,14 @@
sys.exit()
logintimeStart = int(round(time.time()*1000))
mysess = login(args.host, args.user, pw, args.json)
+ if(sys.version_info < (3,0)):
+ if isinstance(mysess, basestring):
+ print(mysess)
+ sys.exit(1)
+ elif sys.version_info >= (3,0):
+ if isinstance(mysess, str):
+ print(mysess)
+ sys.exit(1)
logintimeStop = int(round(time.time()*1000))
commandTimeStart = int(round(time.time()*1000))