Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed up some format strings for p2.6

  • Loading branch information...
commit fc56c4fdf5f897e13ff0a4745380dbbb6152a6e1 1 parent a726050
@pasc pasc authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 boto/elastictranscoder/layer1.py
View
20 boto/elastictranscoder/layer1.py
@@ -77,7 +77,7 @@ def cancel_job(self, id):
action.
"""
- uri = '/2012-09-25/jobs/{}'.format(id)
+ uri = '/2012-09-25/jobs/{0}'.format(id)
return self.make_request('DELETE', uri, expected_status=202)
def create_job(self, pipeline_id, input_name, output):
@@ -240,7 +240,7 @@ def delete_pipeline(self, id):
:param id: The identifier of the pipeline that you want to delete.
"""
- uri = '/2012-09-25/pipelines/{}'.format(id)
+ uri = '/2012-09-25/pipelines/{0}'.format(id)
return self.make_request('DELETE', uri, expected_status=202)
def delete_preset(self, id):
@@ -255,7 +255,7 @@ def delete_preset(self, id):
detailed information.
"""
- uri = '/2012-09-25/presets/{}'.format(id)
+ uri = '/2012-09-25/presets/{0}'.format(id)
return self.make_request('DELETE', uri, expected_status=202)
def list_jobs_by_pipeline(self, pipeline_id, ascending=None,
@@ -284,7 +284,7 @@ def list_jobs_by_pipeline(self, pipeline_id, ascending=None,
each successive page of results.
"""
- uri = '/2012-09-25/jobsByPipeline/{}'.format(pipeline_id)
+ uri = '/2012-09-25/jobsByPipeline/{0}'.format(pipeline_id)
params = {}
if ascending is not None:
params['Ascending'] = ascending
@@ -320,7 +320,7 @@ def list_jobs_by_status(self, status, ascending=None, page_token=None):
each successive page of results.
"""
- uri = '/2012-09-25/jobsByStatus/{}'.format(status)
+ uri = '/2012-09-25/jobsByStatus/{0}'.format(status)
params = {}
if ascending is not None:
params['Ascending'] = ascending
@@ -359,7 +359,7 @@ def read_job(self, id):
information.
"""
- uri = '/2012-09-25/jobs/{}'.format(id)
+ uri = '/2012-09-25/jobs/{0}'.format(id)
return self.make_request('GET', uri, expected_status=200)
def read_pipeline(self, id):
@@ -371,7 +371,7 @@ def read_pipeline(self, id):
:param id: The identifier of the pipeline to read.
"""
- uri = '/2012-09-25/pipelines/{}'.format(id)
+ uri = '/2012-09-25/pipelines/{0}'.format(id)
return self.make_request('GET', uri, expected_status=200)
def read_preset(self, id):
@@ -384,7 +384,7 @@ def read_preset(self, id):
detailed information.
"""
- uri = '/2012-09-25/presets/{}'.format(id)
+ uri = '/2012-09-25/presets/{0}'.format(id)
return self.make_request('GET', uri, expected_status=200)
def test_role(self, role, input_bucket, output_bucket, topics):
@@ -457,7 +457,7 @@ def update_pipeline_notifications(self, id, notifications):
when encounters an error condition.
"""
- uri = '/2012-09-25/pipelines/{}/notifications'.format(id)
+ uri = '/2012-09-25/pipelines/{0}/notifications'.format(id)
params = {'Notifications': notifications, }
return self.make_request('POST', uri, expected_status=200,
data=json.dumps(params))
@@ -489,7 +489,7 @@ def update_pipeline_status(self, id, status):
jobs.
"""
- uri = '/2012-09-25/pipelines/{}/status'.format(id)
+ uri = '/2012-09-25/pipelines/{0}/status'.format(id)
params = {'Status': status, }
return self.make_request('POST', uri, expected_status=200,
data=json.dumps(params))
Please sign in to comment.
Something went wrong with that request. Please try again.