add namespace to all apis
This commit is contained in:
parent
e9658aae73
commit
256de5d2cc
27 changed files with 248 additions and 204 deletions
|
|
@ -16,7 +16,7 @@ class NodeCluster(Mutable, Taggable):
|
|||
def create(cls, **kwargs):
|
||||
for key, value in kwargs.items():
|
||||
if key == "node_type" and isinstance(value, NodeType):
|
||||
kwargs[key] = getattr(value, "resource_uri", "")
|
||||
kwargs[key] = getattr(value, "_resource_uri", "")
|
||||
if key == "region" and isinstance(value, Region):
|
||||
kwargs[key] = getattr(value, "resource_uri", "")
|
||||
kwargs[key] = getattr(value, "_resource_uri", "")
|
||||
return cls(**kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue