commit | 3556a069e8f525c144ac575d1aa333c896a92c57 | [log] [tgz] |
---|---|---|
author | Yulia Portnova <yportnova@mirantis.com> | Tue Mar 17 16:30:11 2015 +0200 |
committer | Yulia Portnova <yportnova@mirantis.com> | Tue Mar 17 16:30:40 2015 +0200 |
tree | e2c020713f8ee0ade99b3ac0f45417e15ea282f1 | |
parent | dd60c50b8062089956ac03860e7fbe3cfe68d430 [diff] [blame] |
nodes discovering
diff --git a/nodes/fuel.py b/nodes/fuel.py new file mode 100644 index 0000000..20390aa --- /dev/null +++ b/nodes/fuel.py
@@ -0,0 +1,9 @@ +import fuel_rest_api + + +def discover_fuel_nodes(root_url, credentials): + """Discover Fuel nodes""" + connection = fuel_rest_api.KeystoneAuth(root_url, credentials) + fi = fuel_rest_api.FuelInfo(connection) + + return fi.nodes \ No newline at end of file