Remove dict translation for create action

This commit is contained in:
tengqm
2015-01-19 21:33:19 +08:00
parent c8c537d0c9
commit b28a16eafe

View File

@@ -43,8 +43,8 @@ class Client(object):
def thin(self):
# Authenticate should be done before this.
request = thins.Thin()
for objay in request.list_networks(self.session):
print(objay['id'])
for obj in request.list_networks(self.session):
print(obj['id'])
def session(self, cls_name):
if cls_name is None:
@@ -73,8 +73,8 @@ class Client(object):
return objs
def create(self, cls, options):
kwargs = self.get_options(options)
obj = cls.new(**kwargs)
#kwargs = self.get_options(options)
obj = cls.new(**options)
obj.create(self.session)
def get(self, cls, options=None):