summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiall Mac Innes <kiall@hpe.com>2016-02-16 12:23:09 +0000
committerKiall Mac Innes <kiall@hpe.com>2016-02-23 14:32:24 +0000
commit136aaea5fbb7394988e01e7d35ece5199c3a77a5 (patch)
treeefef9f2fc451460e7a5ce4554104aed17bde0110
parentc42ce6ac90fad43bb4a92f7ed218d5a624fef6c0 (diff)
downloaddesignate-136aaea5fbb7394988e01e7d35ece5199c3a77a5.tar.gz
Update PoolAlsoNotify object name
PoolAlsoNotify was using the plural form, where all other objects are the singular. Change-Id: I7d5818af02dbfff62d7e658cb9b13ac807f268ca
-rw-r--r--designate/objects/__init__.py2
-rw-r--r--designate/objects/pool.py2
-rw-r--r--designate/objects/pool_also_notify.py (renamed from designate/objects/pool_also_notifies.py)6
3 files changed, 5 insertions, 5 deletions
diff --git a/designate/objects/__init__.py b/designate/objects/__init__.py
index 315e244d..f0a631c4 100644
--- a/designate/objects/__init__.py
+++ b/designate/objects/__init__.py
@@ -23,7 +23,7 @@ from designate.objects.zone_master import ZoneMaster, ZoneMasterList # noqa
from designate.objects.floating_ip import FloatingIP, FloatingIPList # noqa
from designate.objects.pool_manager_status import PoolManagerStatus, PoolManagerStatusList # noqa
from designate.objects.pool import Pool, PoolList # noqa
-from designate.objects.pool_also_notifies import PoolAlsoNotifies, PoolAlsoNotifiesList # noqa
+from designate.objects.pool_also_notify import PoolAlsoNotify, PoolAlsoNotifyList # noqa
from designate.objects.pool_attribute import PoolAttribute, PoolAttributeList # noqa
from designate.objects.pool_ns_record import PoolNsRecord, PoolNsRecordList # noqa
from designate.objects.pool_nameserver import PoolNameserver, PoolNameserverList # noqa
diff --git a/designate/objects/pool.py b/designate/objects/pool.py
index 46da317a..100eba29 100644
--- a/designate/objects/pool.py
+++ b/designate/objects/pool.py
@@ -70,7 +70,7 @@ class Pool(base.DictObjectMixin, base.PersistentObjectMixin,
},
'also_notifies': {
'relation': True,
- 'relation_cls': 'PoolAlsoNotifiesList'
+ 'relation_cls': 'PoolAlsoNotifyList'
},
}
diff --git a/designate/objects/pool_also_notifies.py b/designate/objects/pool_also_notify.py
index 3f52d8d7..e8203dd5 100644
--- a/designate/objects/pool_also_notifies.py
+++ b/designate/objects/pool_also_notify.py
@@ -15,7 +15,7 @@
from designate.objects import base
-class PoolAlsoNotifies(base.DictObjectMixin, base.PersistentObjectMixin,
+class PoolAlsoNotify(base.DictObjectMixin, base.PersistentObjectMixin,
base.DesignateObject):
FIELDS = {
'pool_id': {},
@@ -24,5 +24,5 @@ class PoolAlsoNotifies(base.DictObjectMixin, base.PersistentObjectMixin,
}
-class PoolAlsoNotifiesList(base.ListObjectMixin, base.DesignateObject):
- LIST_ITEM_TYPE = PoolAlsoNotifies
+class PoolAlsoNotifyList(base.ListObjectMixin, base.DesignateObject):
+ LIST_ITEM_TYPE = PoolAlsoNotify