Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Comments clarifying what 'save' means in the context of a record set.

  • Loading branch information...
commit 5db2c163d593d7d1401efe8b23d4997a47fac7f4 1 parent 0b1bc6f
@gtaylor authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 route53/resource_record_set.py
View
5 route53/resource_record_set.py
@@ -90,9 +90,12 @@ def save(self):
"""
cset = ChangeSet(connection=self.connection, hosted_zone_id=self.zone_id)
+ # Record sets can't actually be modified. You have to delete the
+ # existing one and create a new one. Since this happens within a single
+ # change set, it appears that the values were modified, when instead
+ # the whole thing is replaced.
cset.add_change('DELETE', self)
cset.add_change('CREATE', self)
-
retval = self.connection._change_resource_record_sets(cset)
# Now copy the current attribute values on this instance to
Please sign in to comment.
Something went wrong with that request. Please try again.