Skip to content

Commit 4d9ba92

Browse files
committed
PEP8
1 parent 69ae37c commit 4d9ba92

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

clouddns/domain.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,27 @@ def _record(self, name, data, type):
110110
pass
111111

112112
def create_record(self, name, data, type):
113-
xml="""<records xmlns="http://docs.rackspacecloud.com/dns/api/v1.0">
113+
xml = """<records xmlns="http://docs.rackspacecloud.com/dns/api/v1.0">
114114
<record type="%(type)s" data="%(data)s" name="%(name)s"/>
115115
</records>
116116
""" % locals()
117-
response = self.conn.make_request('POST', ['domains', self.id, 'records'], data=xml)
117+
response = self.conn.make_request('POST',
118+
['domains', self.id, 'records'],
119+
data=xml)
118120
output = self.conn.wait_for_async_request(response)
119121
if 'records' in output:
120122
record = output["records"]["record"]
121123
return Record(domain=self, **record[0])
122124
else:
123125
raise Exception("This should not happen")
124-
126+
125127
def delete_record(self, record_id):
126-
response = self.conn.make_request('DELETE', ['domains', self.id, 'records', record_id])
128+
response = self.conn.make_request('DELETE',
129+
['domains',
130+
self.id,
131+
'records',
132+
record_id])
133+
return response
127134

128135

129136
class DomainResults(object):

0 commit comments

Comments
 (0)