Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/rally/osclients.py b/rally/osclients.py
- index 0857eff..0b267d8 100644
- --- a/rally/osclients.py
- +++ b/rally/osclients.py
- @@ -422,6 +422,13 @@ class Cinder(OSClient):
- @configure("manila", default_version="1", default_service_type="share",
- supported_versions=["1", "2"])
- class Manila(OSClient):
- + @classmethod
- + def validate_version(cls, version):
- + print "Hello there!"
- + from manilaclient import api_versions as manila_versions
- + if not float(manila_versions.MIN_VERSION) <= float(version) <= float(manila_versions.MAX_VERSION):
- + raise exception.ValidationError(_("Version not supported"))
- +
- def create_client(self, version=None, service_type=None):
- """Return manila client."""
- from manilaclient import client as manila
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement