commit | 21289b227bb66e4f84d605527c43a16bba86ba7f | [log] [tgz] |
---|---|---|
author | Yulia Portnova <yportnova@mirantis.com> | Wed Mar 18 15:21:43 2015 +0200 |
committer | Yulia Portnova <yportnova@mirantis.com> | Wed Mar 18 15:22:02 2015 +0200 |
tree | 5abc9afb4af666b1a4b8cd43cd26de6ecf2a6dae | |
parent | a915a0114fafde4631bc2af0af172f4cb968d28c [diff] [blame] |
Node class
diff --git a/nodes/fuel.py b/nodes/fuel.py index 20390aa..76dedcd 100644 --- a/nodes/fuel.py +++ b/nodes/fuel.py
@@ -1,3 +1,4 @@ +import node import fuel_rest_api @@ -6,4 +7,4 @@ connection = fuel_rest_api.KeystoneAuth(root_url, credentials) fi = fuel_rest_api.FuelInfo(connection) - return fi.nodes \ No newline at end of file + return [node.Node(n.ip, n.get_roles()) for n in fi.nodes] \ No newline at end of file