boto-route53 icon indicating copy to clipboard operation
boto-route53 copied to clipboard

added add_value to Record (required to manipulating records)

Open turnkeylinux opened this issue 14 years ago • 0 comments

I couldn't figure out how you specify values when manipulating records. Either I missed something or this is a bug. See the attached patch.

commit 5e4d7036a3c63931276a443f7b9cdfb0c4cdc30e
Author: Alon Swartz <[email protected]>
Date:   Wed Apr 27 12:34:08 2011 +0300

    route53 bugfix: added add_value to Record (required to manipulating records)

diff --git a/boto2/route53/record.py b/boto2/route53/record.py
index ac65121..0990d6d 100644
--- a/boto2/route53/record.py
+++ b/boto2/route53/record.py
@@ -109,6 +109,10 @@ class Record(object):
         else:
             setattr(self, name, value)

+    def add_value(self, value):
+        """Add a resource record value"""
+        self.values.append(value)
+
     def to_xml(self):
         """
         Returns the XML representation for this record.

turnkeylinux avatar Apr 27 '11 11:04 turnkeylinux