Commit 37b5c05f authored by dtu@chromium.org's avatar dtu@chromium.org

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
parent 8948f9f5
...@@ -594,6 +594,7 @@ class ConfigCommand(Command): ...@@ -594,6 +594,7 @@ class ConfigCommand(Command):
if not scopes: if not scopes:
scopes.append(SCOPE_FULL_CONTROL) scopes.append(SCOPE_FULL_CONTROL)
default_config_path_bak = None
if output_file_name is None: if output_file_name is None:
# Check to see if a default config file name is requested via # Check to see if a default config file name is requested via
# environment variable. If so, use it, otherwise use the hard-coded # environment variable. If so, use it, otherwise use the hard-coded
...@@ -607,7 +608,6 @@ class ConfigCommand(Command): ...@@ -607,7 +608,6 @@ class ConfigCommand(Command):
default_config_path = os.path.expanduser(os.path.join('~', '.boto')) default_config_path = os.path.expanduser(os.path.join('~', '.boto'))
if not os.path.exists(default_config_path): if not os.path.exists(default_config_path):
output_file_name = default_config_path output_file_name = default_config_path
default_config_path_bak = None
else: else:
default_config_path_bak = default_config_path + '.bak' default_config_path_bak = default_config_path + '.bak'
if os.path.exists(default_config_path_bak): if os.path.exists(default_config_path_bak):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment