summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2015-11-03 15:07:38 -0600
committerAndy Doan <andy.doan@linaro.org>2015-11-03 15:07:38 -0600
commit7a8c0b9f9f20574a72693b727a99090b984dea80 (patch)
tree7a02f0be5922a3e790e7fb17a83c1aabeffc306d
parent5fc9dbf972927f682d3610b2109394181cf9ff05 (diff)
oops - fix last change
Change-Id: I2d00b53355db88d8c93cf1504b4f29fb4ff90d31
-rwxr-xr-xlinaro-cp.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/linaro-cp.py b/linaro-cp.py
index 459e2c0..14dd6d8 100755
--- a/linaro-cp.py
+++ b/linaro-cp.py
@@ -234,9 +234,10 @@ def main():
key = arguments.key
else:
key = os.environ.get('PUBLISH_TOKEN')
- if key and arguments.api_version == '1':
- # Default to api v2 if not specified
- arguments.api_version = '2'
+ if key:
+ if arguments.api_version == '1':
+ # Default to api v2 if not specified
+ arguments.api_version = '2'
else:
key = os.environ.get('PUBLISH_KEY')
if key is None: