commit | 2993171e84b4ea063eb8f51ea695f87978ea6387 | [log] [tgz] |
---|---|---|
author | Ved-vampir <akiselyova@mirantis.com> | Wed Mar 18 16:31:02 2015 +0300 |
committer | Ved-vampir <akiselyova@mirantis.com> | Wed Mar 18 16:31:02 2015 +0300 |
tree | 26ad6a2c814fceb50c27a3b7d198904e02565f84 | |
parent | 21289b227bb66e4f84d605527c43a16bba86ba7f [diff] [blame] |
returned class changed
diff --git a/nodes/ceph.py b/nodes/ceph.py index a2036b2..871b834 100644 --- a/nodes/ceph.py +++ b/nodes/ceph.py
@@ -2,7 +2,7 @@ import json import sh -from connection import Connection +from node import Node def discover_ceph_node(): @@ -34,10 +34,7 @@ res = [] for url, roles in ips: - item = Connection() - item.url = url - item.roles = list(roles) - res.append(item) + res.append(Node(ip=url, roles=list(roles))) return res