get_greds method in fuel_rest_api.Cluster
diff --git a/fuel_rest_api.py b/fuel_rest_api.py
index 4b02687..4ea511d 100644
--- a/fuel_rest_api.py
+++ b/fuel_rest_api.py
@@ -345,6 +345,14 @@
return False
raise
+ def get_creds(self):
+ access = self.get_attributes()['editable']['access']
+ creds = {}
+ creds['username'] = access['user']['value']
+ creds['password'] = access['password']['value']
+ creds['tenant_name'] = access['tenant']['value']
+ return creds
+
def get_nodes(self):
for node_descr in self._get_nodes():
yield Node(self.__connection__, **node_descr)