mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Fix undefined default_config_path_bak in gsutil config.
This is already fixed upstream in gsutil. BUG=None. TEST=None. Review URL: https://codereview.chromium.org/341833005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@280386 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
2
third_party/gsutil/gslib/commands/config.py
vendored
2
third_party/gsutil/gslib/commands/config.py
vendored
@@ -594,6 +594,7 @@ class ConfigCommand(Command):
|
||||
if not scopes:
|
||||
scopes.append(SCOPE_FULL_CONTROL)
|
||||
|
||||
default_config_path_bak = None
|
||||
if output_file_name is None:
|
||||
# Check to see if a default config file name is requested via
|
||||
# environment variable. If so, use it, otherwise use the hard-coded
|
||||
@@ -607,7 +608,6 @@ class ConfigCommand(Command):
|
||||
default_config_path = os.path.expanduser(os.path.join('~', '.boto'))
|
||||
if not os.path.exists(default_config_path):
|
||||
output_file_name = default_config_path
|
||||
default_config_path_bak = None
|
||||
else:
|
||||
default_config_path_bak = default_config_path + '.bak'
|
||||
if os.path.exists(default_config_path_bak):
|
||||
|
||||
Reference in New Issue
Block a user