Skip to content

Commit fec3ba9

Browse files
committed
Fixed error in "organization update-metadata" and "organization create" commands.
1 parent 059ef30 commit fec3ba9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

snet/cli/commands/commands.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,6 @@ def create(self):
671671
metadata_file = self.args.metadata_file
672672
with open(metadata_file, 'r') as f:
673673
org_metadata = OrganizationMetadata.from_json(json.load(f))
674-
org_metadata.check_remove_groups()
675674

676675
org_id = self.args.org_id
677676

@@ -723,7 +722,6 @@ def update_metadata(self):
723722
metadata_file = self.args.metadata_file
724723
with open(metadata_file, 'r') as f:
725724
org_metadata = OrganizationMetadata.from_json(json.load(f))
726-
org_metadata.check_remove_groups()
727725

728726
org_id = self.args.org_id
729727
existing_registry_org_metadata = self._get_organization_metadata_from_registry(org_id)

snet/cli/resources/org_schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"short_description": {
3232
"description": "Organization short description",
3333
"type": "string",
34-
"minLength": 1
34+
"minLength": 1,
35+
"maxLength": 160
3536
},
3637
"url": {
3738
"description": "Organization url",

0 commit comments

Comments
 (0)