* Added build_url() utility that returns an endpoint URL based on config parameters
* Updated storm.conf
* Added more properties to Nova config object
* Fixed pep8 and the 'set' typo that came from a vi editor 'set list' fumble
Change-Id: I67a9b7a8708cd64eb26eb9ec15c40b18eb8895de
diff --git a/storm/config.py b/storm/config.py
index 5ba7ef6..454f684 100644
--- a/storm/config.py
+++ b/storm/config.py
@@ -15,9 +15,28 @@
return default_value
@property
- def auth_url(self):
- """URL used to authenticate. Defaults to 127.0.0.1."""
- return self.get("auth_url", "127.0.0.1")
+ def host(self):
+ """Host IP for making Nova API requests. Defaults to '127.0.0.1'."""
+ return self.get("host", "127.0.1")
+
+ @property
+ def port(self):
+ """Listen port of the Nova service."""
+ return self.get("port", "8773")
+
+ @property
+ def apiVer(self):
+ """Version of the API"""
+ return self.get("apiVer", "v1.1")
+
+ @property
+ def path(self):
+ """Path of API request"""
+ return self.get("path", "/")
+
+ def params(self):
+ """Parameters to be passed with the API request"""
+ return self.get("params", "")
@property
def username(self):