diff --git a/src/infuse_iot/tools/cloud.py b/src/infuse_iot/tools/cloud.py index 05a583e..b0ee1d4 100644 --- a/src/infuse_iot/tools/cloud.py +++ b/src/infuse_iot/tools/cloud.py @@ -76,7 +76,7 @@ def create(self, client): body=NewOrganisation(self.args.name), ) - if rsp.status_code == HTTPStatus.OK: + if rsp.status_code == HTTPStatus.CREATED: print(f"Created organisation {rsp.parsed.name} with ID {rsp.parsed.id}") else: c = loads(rsp.content.decode("utf-8")) @@ -144,7 +144,7 @@ def create(self, client): organisation_id=self.args.org, ), ) - if rsp.status_code == HTTPStatus.OK: + if rsp.status_code == HTTPStatus.CREATED: print(f"Created board {rsp.parsed.name} with ID {rsp.parsed.id}") else: c = loads(rsp.content.decode("utf-8"))