-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Multiple improvements for cs_clones #370
Conversation
004aac2
to
42a378a
Compare
25272db
to
b1fa069
Compare
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.
just some format things. actual code looks fine
updated << "#{@resource.value(:name)} " | ||
updated << "#{@resource.should(:primitive)} " | ||
meta = '' | ||
{ clone_max: 'clone-max', |
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.
our rubocop config normally marks this. What do you think about inserting a newline after {?
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.
Addressed
notify_clones: 'notify', | ||
globally_unique: 'globally-unique', | ||
ordered: 'ordered', | ||
interleave: 'interleave' }.each do |property, clone_property| |
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.
same here, newline before }?
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.
Addressed
PuppetX::Voxpupuli::Corosync::Provider::Pcs.run_command_in_cib(cmd, @resource[:cib]) | ||
change_clone_id(@property_hash[:primitive], @property_hash[:name], @resource[:cib]) | ||
cmd = [command(:pcs), 'resource', 'clone', @resource.should(:primitive).to_s] | ||
{ clone_max: 'clone-max', |
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.
should we change the formatting here too?
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.
Addressed
notify_clones: 'notify', | ||
globally_unique: 'globally-unique', | ||
ordered: 'ordered', | ||
interleave: 'interleave' }.each do |property, clone_property| |
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.
aaand here
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.
Addressed
b1fa069
to
ee1b8fc
Compare
- Ruby code improvements - Add multiple acceptance tests - Fix changing clone parameters (crm provider) - Purge parameters that are not explicitely set Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
ee1b8fc
to
8bbd1b7
Compare
Signed-off-by: Julien Pivotto roidelapluie@inuits.eu