Skip to content

Commit b7a3909

Browse files
committed
fixed for failing config search
1 parent 2f2bd74 commit b7a3909

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cloudsmith_cli/cli/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def load_config(cls, opts, path=None, profile=None, no_warn=False):
176176

177177
warn = not no_warn and not cls.config_already_warned()
178178

179-
if profile and profile != "default":
179+
if profile and profile != "default" and warn:
180180
try:
181181
values = config["profile:%s" % profile]
182182
cls._load_values_into_opts(opts, values)

cloudsmith_cli/cli/decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def wrapper(ctx, *args, **kwargs):
104104
no_warn = kwargs.pop("no_warn")
105105
if no_warn:
106106
opts.no_warn = no_warn
107-
opts.load_config_file(path=config_file, profile=profile, no_warn=no_warn)
108-
opts.load_creds_file(path=creds_file, profile=profile, no_warn=no_warn)
107+
opts.load_config_file(path=config_file, profile=profile, no_warn=opts.no_warn)
108+
opts.load_creds_file(path=creds_file, profile=profile, no_warn=opts.no_warn)
109109
kwargs["opts"] = opts
110110
return ctx.invoke(f, *args, **kwargs)
111111

0 commit comments

Comments
 (0)