Skip to content

Commit

Permalink
Fix using --profile flag to subcommands
Browse files Browse the repository at this point in the history
This flag was broken, since it referenced an unset attribute profile on
the parsed options object.
  • Loading branch information
jbott authored and SK1Y101 committed Aug 21, 2023
1 parent 1ff28d5 commit 03c1d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maas/client/flesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 03c1d30

Please sign in to comment.