Skip to content

Commit

Permalink
Send post data to discovery server as JSON
Browse files Browse the repository at this point in the history
Change-Id: I02e975f22f0ffd8340a22aeca2cb02d861339f29
Fixes-Bug: #1603231
  • Loading branch information
Deepinder Setia committed Aug 2, 2016
1 parent 6b0ad8a commit 70d1301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/utils/discovery_cli.py
Original file line number Diff line number Diff line change
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 70d1301

Please sign in to comment.