Skip to content
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

Merged
merged 1 commit into from
Sep 16, 2016

Conversation

roidelapluie
Copy link
Member

Signed-off-by: Julien Pivotto roidelapluie@inuits.eu

@roidelapluie roidelapluie modified the milestone: 5.x Sep 15, 2016
@roidelapluie roidelapluie changed the title Advanced testing for cs_clones Multiple improvements for cs_clones Sep 16, 2016
Copy link
Member

@bastelfreak bastelfreak left a 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',
Copy link
Member

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 {?

Copy link
Member Author

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|
Copy link
Member

Choose a reason for hiding this comment

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

same here, newline before }?

Copy link
Member Author

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',
Copy link
Member

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?

Copy link
Member Author

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|
Copy link
Member

Choose a reason for hiding this comment

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

aaand here

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed

- 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>
@bastelfreak bastelfreak merged commit 8bbd1b7 into voxpupuli:master Sep 16, 2016
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