Skip to content

Commit 5f1a480

Browse files
authored
Always read from local for configured_default (#150)
1 parent 8b44748 commit 5f1a480

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

knack/commands.py

+3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ def _resolve_default_value_from_config_file(self, arg, overrides):
7878
return
7979

8080
defaults_section = self.cli_ctx.config.defaults_section_name
81+
use_local_config_original = self.cli_ctx.config.use_local_config
82+
self.cli_ctx.config.set_to_use_local_config(True)
8183
config_value = self.cli_ctx.config.get(defaults_section, default_key, None)
84+
self.cli_ctx.config.set_to_use_local_config(use_local_config_original)
8285
if config_value:
8386
logger.info("Configured default '%s' for arg %s", config_value, arg.name)
8487
overrides.settings['default'] = DefaultStr(config_value)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from codecs import open
1010
from setuptools import setup, find_packages
1111

12-
VERSION = '0.6.0'
12+
VERSION = '0.6.1'
1313

1414
DEPENDENCIES = [
1515
'argcomplete',

0 commit comments

Comments
 (0)