You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by mx...@apache.org on 2017/05/17 11:29:20 UTC

incubator-ariatosca git commit: tiny host_address fix

Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-258-Convert-runtime-properties-to-attributes d1fa9d2ed -> e6e75a1d2


tiny host_address fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/e6e75a1d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/e6e75a1d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/e6e75a1d

Branch: refs/heads/ARIA-258-Convert-runtime-properties-to-attributes
Commit: e6e75a1d295b4d9561632064fedf045839bf309a
Parents: d1fa9d2
Author: max-orlov <ma...@gigaspaces.com>
Authored: Wed May 17 14:29:16 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Wed May 17 14:29:16 2017 +0300

----------------------------------------------------------------------
 aria/modeling/service_instance.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/e6e75a1d/aria/modeling/service_instance.py
----------------------------------------------------------------------
diff --git a/aria/modeling/service_instance.py b/aria/modeling/service_instance.py
index bd91214..0f83ef5 100644
--- a/aria/modeling/service_instance.py
+++ b/aria/modeling/service_instance.py
@@ -529,7 +529,8 @@ class NodeBase(InstanceModelMixin):
     @property
     def host_address(self):
         if self.host and self.host.attributes:
-            return self.host.attributes.get('ip').value
+            attribute = self.host.attributes.get('ip')
+            return attribute.value if attribute else None
         return None
 
     def satisfy_requirements(self):