Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where dictionary was accessed directly #98

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

bgklein
Copy link
Contributor

@bgklein bgklein commented Feb 15, 2019

No description provided.

@bgklein
Copy link
Contributor Author

bgklein commented Feb 15, 2019

If you can @timotheeguerin feel free to pip install -e this from src.

@@ -76,7 +76,7 @@ def jobparameter_from_json(json_data):
result = 'JobTemplate' if json_data.get('properties') else 'ExtendedJobParameter'
try:
if result == 'JobTemplate':
if json_data['apiVersion']:
if json_data.get('apiVersion'):
Copy link
Member

@timotheeguerin timotheeguerin Feb 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it better to do if 'apiVersion' in json_data?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, yes it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants