diff options
Diffstat (limited to 'linaro-cp.py')
-rwxr-xr-x | linaro-cp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linaro-cp.py b/linaro-cp.py index 5819211..459e2c0 100755 --- a/linaro-cp.py +++ b/linaro-cp.py @@ -234,7 +234,8 @@ def main(): key = arguments.key else: key = os.environ.get('PUBLISH_TOKEN') - if key: + if key and arguments.api_version == '1': + # Default to api v2 if not specified arguments.api_version = '2' else: key = os.environ.get('PUBLISH_KEY') |