diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-09-23 14:03:31 +0800 |
---|---|---|
committer | yunlong ying <ying.yunlong@zte.com.cn> | 2017-09-23 06:57:52 +0000 |
commit | 1686e5f5efd3bcb82aebd30993dd8b11336930a8 (patch) | |
tree | 7d0a9d47f77c89904027e2fc46a80ba4c9b5e757 /mgr | |
parent | 0bd2219c94febe97a9c696775deef66f3683d347 (diff) |
Fix vfc-gvnfm-vnfmgr pep8 W291 issue
Change-Id: I8f0f2a8d3c3e75ef88a6b906be30a3b5d757868a
Issue-ID: VFC-443
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'mgr')
-rw-r--r-- | mgr/mgr/vnfreg/views.py | 10 | ||||
-rw-r--r-- | mgr/tox.ini | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mgr/mgr/vnfreg/views.py b/mgr/mgr/vnfreg/views.py index f5771c6..15abe62 100644 --- a/mgr/mgr/vnfreg/views.py +++ b/mgr/mgr/vnfreg/views.py @@ -99,12 +99,12 @@ def vnf_config(request, *args, **kwargs): if not vnf: raise Exception("Vnf(%s) does not exist." % vnf_inst_id) ret = restcall.call_req( - base_url="http://%s:%s/" % (vnf[0].ip, vnf[0].port), - user=vnf[0].username, - passwd=vnf[0].password, + base_url="http://%s:%s/" % (vnf[0].ip, vnf[0].port), + user=vnf[0].username, + passwd=vnf[0].password, auth_type=restcall.rest_no_auth, - resource="v1/vnfconfig", - method="POST", + resource="v1/vnfconfig", + method="POST", content=json.dumps(request.data)) if ret[0] != 0: raise Exception("Failed to config Vnf(%s): %s" % (vnf_inst_id, ret[1])) diff --git a/mgr/tox.ini b/mgr/tox.ini index ef3b10c..86ffd21 100644 --- a/mgr/tox.ini +++ b/mgr/tox.ini @@ -6,7 +6,7 @@ skipsdist = true downloadcache = ~/cache/pip [flake8] -ignore = E501,W293,E128,W291 +ignore = E501,W293,E128 [testenv] deps = -r{toxinidir}/requirements.txt |