We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf30101 commit d37c9abCopy full SHA for d37c9ab
1 file changed
lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb
@@ -35,19 +35,11 @@ def policies(name, vhost)
35
end
36
37
def should_policy
38
- if @should_policy
39
- @should_policy
40
- else
41
- @should_policy = resource[:name].rpartition('@').first
42
- end
+ @should_policy ||= resource[:name].rpartition('@').first
43
44
45
def should_vhost
46
- if @should_vhost
47
- @should_vhost
48
49
- @should_vhost = resource[:name].rpartition('@').last
50
+ @should_vhost ||= resource[:name].rpartition('@').last
51
52
53
def create
0 commit comments