Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdfd59 commit 08c294cCopy full SHA for 08c294c
bin/show_puppet_versions.py
@@ -52,7 +52,9 @@ def enhance_with_release_number(server_mapping):
52
Because many of the SHAs will be the same, there is caching in place to
53
avoid unnecessary calls.
54
"""
55
- access_token = os.environ['GITHUB_ACCESS_TOKEN']
+ access_token = os.environ.get('GITHUB_ACCESS_TOKEN')
56
+ if access_token is None:
57
+ raise ValueError("Please set GITHUB_ACCESS_TOKEN in order to continue")
58
59
for server_name, puppet_information in server_mapping.iteritems():
60
sha = puppet_information.get('sha')
0 commit comments