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

Added statement for non-idempotent resources #284

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/puppet/provider/oneview_logical_enclosure/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ def set_script
end

def updated_from_group
get_single_resource_instance.update_from_group
resource = get_single_resource_instance
if resource.data['state'] == 'Inconsistent'
Puppet.notice('Update from Group...')
resource.update_from_group
end
true
end

def generate_support_dump
Expand Down
7 changes: 5 additions & 2 deletions lib/puppet/provider/oneview_logical_interconnect/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ def set_configuration
end

def set_compliance
Puppet.notice('Setting Logical Interconnect compliance...')
get_single_resource_instance.compliance
resource = get_single_resource_instance
if resource.data['consistencyStatus'] == 'NOT_CONSISTENT'
Puppet.notice('Setting Logical Interconnect compliance...')
resource.compliance
end
true
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ def set_configuration
end

def set_compliance
Puppet.notice('Setting Logical Interconnect compliance...')
get_single_resource_instance.compliance
resource = get_single_resource_instance
if resource.data['consistencyStatus'] == 'NOT_CONSISTENT'
Puppet.notice('Setting SAS Logical Interconnect compliance...')
resource.compliance
end
true
end

Expand Down