-
Notifications
You must be signed in to change notification settings - Fork 321
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
Fixed docker facts to check for active swarm clusters before running docker swarm sub-commands. #817
Conversation
0901767
to
79cdebe
Compare
…docker swarm sub-commands.
79cdebe
to
81a9af0
Compare
lib/facter/docker.rb
Outdated
end | ||
val | ||
end | ||
end | ||
|
||
|
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.
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.
Looks like this came back after your latest merge
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.
This looks fine. Can you remove the extra new line that has been added in docker.rb:124 please?
Then we can get this one merged.
Co-authored-by: Craig Gumbley <[email protected]>
@chelnak Done. |
Hmm looks like some rubocop warnings have popped up, could you take a look? https://github.com/puppetlabs/puppetlabs-docker/runs/6669799337?check_suite_focus=true |
…docker swarm sub-commands.
…bugfix/docker-swarm-facts
7c6c2f4
to
a8d8858
Compare
Thank you for your contribution 🙏 👍 |
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
The 4.4.0 release incorporates puppetlabs/puppetlabs-docker#783. It also includes a fix for the docker swarm facts generating error messages in syslog. puppetlabs/puppetlabs-docker#817
Closes #702
Previously the docker facts would run
docker swarm
commands without knowing if the node was a member of a swarm cluster. This generated errors in/var/log/messages
every time facts were collected.The fix is to check if the node is a member of an active swarm cluster before trying to run the swarm commands. Inspired by: https://stackoverflow.com/questions/43053013/how-do-i-check-that-a-docker-host-is-in-swarm-mode