Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Bugfix/chef rhn 12 #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zachsmorgan
Copy link
Contributor

@zachsmorgan zachsmorgan commented Dec 16, 2016

Fixes issue #12

Copy link
Owner

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Could you please do the following?

  • Rename execute_cmd_maybe? to execute_cmd_with_retries -- ? ending methods in Ruby generally return TrueClass/FalseClass.
  • Call execute_cmd instead of shell_out! inside the new retrying method - we shouldn't need to update the shell out logic in two places
  • Potentially make the number of tries a resource attribute (e.g. cmd_tries) that defaults to 5

Thanks!

@zachsmorgan
Copy link
Contributor Author

@bflad I managed to completely miss your comments somehow... I was hacking around at adding some more verbose output during the reg process and just happened to see this PR was still open.

Can you check the commits I just added and confirm this makes the cut now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants