Skip to content

Commit 660afe8

Browse files
committed
Merge branch 'release-v5.8.2'
2 parents 6b3027d + 50cffe6 commit 660afe8

File tree

6 files changed

+451
-512
lines changed

6 files changed

+451
-512
lines changed

netfoundry/ctl.py

Lines changed: 63 additions & 61 deletions
Large diffs are not rendered by default.

netfoundry/exceptions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ def __init__(self, resource_type: str, valid_types: list) -> None:
5050
def __str__(self):
5151
"""Report the invalid type if provided, finally report valid types."""
5252
if self.resource_type is not None:
53-
return f"Not a valid resource type: '{self.resource_type}'. Try one of: {','.join(self.valid_types)}"
53+
return f"Not a valid resource type: '{self.resource_type}'. Try one of: {', '.join(self.valid_types)}"
5454
else:
55-
return f"Not a valid resource type. Try one of: {','.join(self.valid_types)}"
55+
return f"Not a valid resource type. Try one of: {', '.join(self.valid_types)}"
5656

5757

5858
class NeedUserInput(NFAPIError):
5959
"""Need user input to confirm action."""
60+
61+
62+
class NetworkBoundaryViolation(NFAPIError):
63+
"""Network domain resource accessed across a network boundary."""

0 commit comments

Comments
 (0)