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

[OCF HA] Add ocf_get_private_attr function to RabbitMQ OCF script #926

Merged
merged 1 commit into from
Aug 18, 2016

Conversation

dmitrymex
Copy link
Contributor

The function is extracted from check_timeouts to be re-used later
in other parts of the script. Also, swtich check_timeouts to use
existing ocf_update_private_attr function.

@dmitrymex
Copy link
Contributor Author

@bogdando, @binarin: what do you think about it?

@bogdando
Copy link

LGTM

if [ $? -ne 0 ]; then
echo $attr_default_value
else
echo "$count" | awk '{ gsub(/"/, "", $3); split($3, vals, "="); if (vals[2] != "(null)") print vals[2] }'
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't (null) be transformed to $attr_default_value?

@michaelklishin michaelklishin self-assigned this Aug 18, 2016
The function is extracted from check_timeouts to be re-used later
in other parts of the script. Also, swtich check_timeouts to use
existing ocf_update_private_attr function.
@dmitrymex
Copy link
Contributor Author

@binarin: yep, probably a good idea :-) Fixed that.

@michaelklishin michaelklishin merged commit c633856 into rabbitmq:stable Aug 18, 2016
openstack-gerrit pushed a commit to openstack-archive/fuel-library that referenced this pull request Aug 19, 2016
The function is extracted from check_timeouts to be re-used later
in other parts of the script. Also, swtich check_timeouts to use
existing ocf_update_private_attr function.

Upstream PR: rabbitmq/rabbitmq-server#926

Change-Id: Iaae9e4a06879e7e5b716591d9e2d69a5b34f6422
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.

4 participants