Make at least profile-create API work
This commit is contained in:
@@ -113,7 +113,7 @@ class Resource(base.Resource):
|
||||
resp = self.create_by_id(session, self._attrs, self.id, path_args=self)
|
||||
self._attrs[self.id_attribute] = resp[self.id_attribute]
|
||||
self._reset_dirty()
|
||||
return self, resp
|
||||
return self
|
||||
|
||||
|
||||
def create_connection(preferences, user_agent, **kwargs):
|
||||
|
||||
@@ -123,7 +123,7 @@ def do_profile_create(sc, args):
|
||||
'tags': utils.format_parameters(args.tags),
|
||||
}
|
||||
|
||||
profile, _ = sc.create(models.Profile, params)
|
||||
profile = sc.create(models.Profile, params)
|
||||
if profile:
|
||||
print("Profile created: %s" % profile.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user