Skip to content

Fix some linter warnings, part 11#267

Merged
kornicameister merged 9 commits intomonasca:masterfrom
digitalfishpond:fix-lint-11
Oct 20, 2017
Merged

Fix some linter warnings, part 11#267
kornicameister merged 9 commits intomonasca:masterfrom
digitalfishpond:fix-lint-11

Conversation

@digitalfishpond
Copy link
Contributor

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

matrixik
matrixik previously approved these changes Oct 20, 2017
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