Skip to content

Commit

Permalink
Merge "Send post data to discovery server as JSON" into R3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 2, 2016
2 parents 645e754 + 70d1301 commit 17e4a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/utils/discovery_cli.py
Expand Up @@ -283,7 +283,7 @@ def get_ks_var(args, name):
print 'Specific service id %s ignored for this operation' % args.service_id
url = "http://%s:%s/load-balance/%s" % (server_ip, server_port, args.service_type)
payload = { 'type': args.load_balance }
r = requests.post(url, headers=headers, data=payload)
r = requests.post(url, headers=headers, data=json.dumps(payload))
if r.status_code != 200:
print "Operation status %d" % r.status_code
sys.exit(0)
Expand Down

0 comments on commit 17e4a50

Please sign in to comment.