diff --git a/maas/client/flesh/__init__.py b/maas/client/flesh/__init__.py index 7c1fa64..335c674 100644 --- a/maas/client/flesh/__init__.py +++ b/maas/client/flesh/__init__.py @@ -318,7 +318,7 @@ def __init__(self, parser): class OriginCommand(OriginCommandBase): def __call__(self, options): - session = bones.SessionAPI.fromProfileName(options.profile) + session = bones.SessionAPI.fromProfileName(options.profile_name) origin = viscera.Origin(session) return self.execute(origin, options) @@ -328,7 +328,7 @@ def execute(self, origin, options): class OriginTableCommand(OriginCommandBase, TableCommand): def __call__(self, options): - session = bones.SessionAPI.fromProfileName(options.profile) + session = bones.SessionAPI.fromProfileName(options.profile_name) origin = viscera.Origin(session) return self.execute(origin, options, target=options.format)