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 runner parameter names in newer salt version (Boron) #51
Conversation
@jan--f Can you test this please. |
""" | ||
Check a cluster for runtime configurations that may cause issues for an | ||
installation. | ||
""" | ||
if name == None: | ||
name = kwargs['name'] | ||
if cluster_name == None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's make this cluster_name is None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
12acf22
to
41bb8d4
Compare
Works for me under salt 2016.3.4 (Boron). @supriti can you check if it works for you now too please. Maybe just 'cluster' would be better as the parameter? This would keep things consistent with the pillar data in DeepSea. |
@jan--f you're right. Will change it to |
The first parameter of a runner function cannot be named "name", as it is used internally by salt. Fixes: #50 Signed-off-by: Ricardo Dias <rdias@suse.com>
41bb8d4
to
b316da1
Compare
@jan--f pushed the rename changes. Might be worth to test again to check if I didn't screwed up anything the with the rename. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good, need to validate against Boron to be sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good and it works for me in under Boron and Beryllium. So thumbs up.
The first parameter of a runner function cannot be named "name",
as it is used internally by salt.
Fixes: #50
Signed-off-by: Ricardo Dias rdias@suse.com