Use format consistently instead of %.

This commit is contained in:
Connor Doyle
2015-01-26 14:38:37 -08:00
parent a83b6719b7
commit b4017844cb

View File

@@ -130,7 +130,7 @@ class Client(object):
forceQuery = '?force=true'
url = self._create_url('v2/apps' + app_id + forceQuery)
scale_json = json.loads('{ "instances": %d }' % int(instances))
scale_json = json.loads('{{ "instances": {} }}'.format(int(instances)))
response = requests.put(url, json=scale_json)
if response.status_code == 200: