Skip to content

Commit 003e606

Browse files
committed
cleanup global
1 parent d3ad348 commit 003e606

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

aci-preupgrade-validation-script.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,11 +1139,7 @@ def _icurl(apitype, query, page=0, page_size=100000):
11391139
pre = '&' if '?' in query else '?'
11401140
query += '{}page={}&page-size={}'.format(pre, page, page_size)
11411141
uri = 'http://127.0.0.1:7777/api/{}/{}'.format(apitype, query)
1142-
if TOKEN:
1143-
cookie = "APIC-cookie={}".format(TOKEN)
1144-
cmd = ['curl', '-b', cookie, '-gs', uri]
1145-
else:
1146-
cmd = ['icurl', '-gs', uri]
1142+
cmd = ['icurl', '-gs', uri]
11471143
logging.info('cmd = ' + ' '.join(cmd))
11481144
response = subprocess.check_output(cmd)
11491145
logging.debug('response: ' + str(response))

0 commit comments

Comments
 (0)