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 some linter warnings, part 11 #267

Merged
merged 9 commits into from
Oct 20, 2017

Conversation

digitalfishpond
Copy link
Contributor

Fixes some linter errors for #263 (formerly #191)

matrixik
matrixik previously approved these changes Oct 20, 2017
@@ -23,8 +24,7 @@ template () {
}

if [ "$HOSTNAME_FROM_KUBERNETES" = "true" ]; then
AGENT_HOSTNAME=$(python /kubernetes_get_host.py)
if [ $? != 0 ]; then
if AGENT_HOSTNAME=$(python /kubernetes_get_host.py); then
Copy link
Contributor

Choose a reason for hiding this comment

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

That seems a bit wrong ? In previous code you had != but now you have =

@digitalfishpond
Copy link
Contributor Author

@kornicameister done. Also nothing to change in versions for both these modules. Should be ready for merge.

@digitalfishpond
Copy link
Contributor Author

https://github.com/koalaman/shellcheck/wiki/SC2181 describes how checking exit codes for a command should be done.

@kornicameister kornicameister merged commit 38bda1f into monasca:master Oct 20, 2017
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