summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Valyavskiy <vvalyavskiy@mirantis.com>2016-11-09 13:08:58 +0300
committerViacheslav Valyavskiy <vvalyavskiy@mirantis.com>2016-11-09 13:09:58 +0300
commit40315ce69d7f4836ff0f7406f81c41673ff5b909 (patch)
treec580ec39c838a48b8a98ffa3d7c4f9fe24b9cd18
parentab17ac75ea83dc81efa48cf5c03ad140945a7bbd (diff)
Introduce role_metadata into cluster adapter
Notes
Notes (review): Code-Review+2: Ilya Kharin <akscram@gmail.com> Code-Review+2: Sergey Abramov <sabramov@mirantis.com> Workflow+1: Sergey Abramov <sabramov@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 09 Nov 2016 10:29:39 +0000 Reviewed-on: https://review.openstack.org/395502 Project: openstack/fuel-nailgun-extension-cluster-upgrade Branch: refs/heads/master
-rw-r--r--cluster_upgrade/objects/adapters.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cluster_upgrade/objects/adapters.py b/cluster_upgrade/objects/adapters.py
index 0edf3ee..694121e 100644
--- a/cluster_upgrade/objects/adapters.py
+++ b/cluster_upgrade/objects/adapters.py
@@ -55,6 +55,10 @@ class NailgunClusterAdapter(object):
55 def generated_attrs(self): 55 def generated_attrs(self):
56 return self.cluster.attributes.generated 56 return self.cluster.attributes.generated
57 57
58 @property
59 def roles_metadata(self):
60 return self.cluster.roles_metadata
61
58 @generated_attrs.setter 62 @generated_attrs.setter
59 def generated_attrs(self, attrs): 63 def generated_attrs(self, attrs):
60 self.cluster.attributes.generated = attrs 64 self.cluster.attributes.generated = attrs