Skip to content

Commit

Permalink
Make it possible to specify the managed flavor profile (#881)
Browse files Browse the repository at this point in the history
Use the SCS profile: osism manage flavors --name scs

Default vaule is scs. Possible values are scs, osism, local.

Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored May 3, 2024
1 parent e5c3d56 commit 7472c12
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osism/commands/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ def get_parser(self, prog_name):
parser.add_argument(
"--cloud", type=str, help="Cloud name in clouds.yaml", default="admin"
)
parser.add_argument(
"--name",
type=str,
help="Name of flavor definitions",
default="scs",
choices=["scs", "osism", "local"],
)
parser.add_argument(
"--recommended",
default=False,
Expand All @@ -228,9 +235,10 @@ def get_parser(self, prog_name):

def take_action(self, parsed_args):
cloud = parsed_args.cloud
name = parsed_args.name
recommended = parsed_args.recommended

arguments = []
arguments = [f"--name '{name}'"]
if cloud:
arguments.append(f"--cloud '{cloud}'")

Expand Down

0 comments on commit 7472c12

Please sign in to comment.