-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
monasca-agent-forwarder/start.sh
Outdated
@@ -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 |
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.
That seems a bit wrong ? In previous code you had !=
but now you have =
@kornicameister done. Also nothing to change in versions for both these modules. Should be ready for merge. |
https://github.com/koalaman/shellcheck/wiki/SC2181 describes how checking exit codes for a command should be done. |
Fixes some linter errors for #263 (formerly #191)