Skip to content

Commit

Permalink
Replacing envvar by CONF.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
tdviet committed Nov 5, 2023
1 parent eb65c27 commit 1d79460
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fedcloudclient/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import click
from click_option_group import (
RequiredAnyOptionGroup,
RequiredMutuallyExclusiveOptionGroup,
optgroup,
optgroup, MutuallyExclusiveOptionGroup,
)

from fedcloudclient.conf import CONF
Expand All @@ -29,7 +28,6 @@
site_params = click.option(
"--site",
help="Name of the site",
required=True,
default=CONF.get("site"),
metavar="site-name",
)
Expand All @@ -51,7 +49,7 @@ def all_site_params(func):

@optgroup.group(
"Site",
cls=RequiredMutuallyExclusiveOptionGroup,
cls=MutuallyExclusiveOptionGroup,
help="Single Openstack site or all sites",
)
@optgroup.option(
Expand All @@ -77,7 +75,6 @@ def wrapper(*args, **kwargs):
project_id_params = click.option(
"--project-id",
help="Project ID",
required=True,
default=CONF.get("project_id"),
metavar="project-id",
)
Expand All @@ -95,7 +92,6 @@ def wrapper(*args, **kwargs):
vo_params = click.option(
"--vo",
help="Name of the VO",
required=True,
default=CONF.get("vo"),
metavar="vo-name",
)
Expand Down

0 comments on commit 1d79460

Please sign in to comment.