Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
8 lib/puppet/provider/boundary_meter/boundary_meter.rb
@@ -136,14 +136,13 @@ def download_request(type, resource)
end
def set_meter_tags(resource)
- meter_tags = @tags || get_meter("tags", resource)
new_tags = resource[:tags]
new_tags.each do |t|
- unless meter_tags.include?(t)
+ unless tags.include?(t)
add_meter_tag(t)
end
end
- old_tags = meter_tags - new_tags
+ old_tags = tags - new_tags
old_tags.each do |t|
remove_meter_tag(t)
end
@@ -260,8 +259,7 @@ def destroy
end
def tags
- @tags = get_meter("tags", resource)
- @tags
+ @tags ||= get_meter("tags", resource)
end
def tags=(tags)
View
4 lib/puppet/type/boundary_meter.rb
@@ -18,5 +18,9 @@
newproperty(:tags, :array_matching => :all) do
desc "Tags to be added to the Boundary meter. Specify a tag or an array of tags."
+
+ def insync?(is)
+ is.sort == @should.sort
+ end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.