Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vfclcm upgrade from python2 to python3
[vfc/gvnfm/vnflcm.git]
/
lcm
/
lcm
/
pub
/
utils
/
restcall.py
diff --git
a/lcm/lcm/pub/utils/restcall.py
b/lcm/lcm/pub/utils/restcall.py
index
6bcb033
..
37ff668
100644
(file)
--- a/
lcm/lcm/pub/utils/restcall.py
+++ b/
lcm/lcm/pub/utils/restcall.py
@@
-15,7
+15,7
@@
import sys
import traceback
import logging
import sys
import traceback
import logging
-import urllib
2
+import urllib
.error
import uuid
import httplib2
import uuid
import httplib2
@@
-62,7
+62,7
@@
def call_req(base_url, user, passwd, auth_type, resource, method, content='', ad
ret = [1, "Unable to connect to %s" % full_url, resp_status]
continue
raise ex
ret = [1, "Unable to connect to %s" % full_url, resp_status]
continue
raise ex
- except urllib
2
.URLError as err:
+ except urllib
.error
.URLError as err:
ret = [2, str(err), resp_status]
except Exception as ex:
logger.error(traceback.format_exc())
ret = [2, str(err), resp_status]
except Exception as ex:
logger.error(traceback.format_exc())