File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55require 'net/http'
66require 'puppet'
77
8+ # GetInfrastructureAgentGroupRules task class
89class GetInfrastructureAgentGroupRules
910 def execute!
1011 infrastructure_agent_group = groups . find { |obj | obj [ 'name' ] == 'PE Infrastructure Agent' }
1112 if infrastructure_agent_group
12- puts " WARNING: The following existing rules on the PE Infrastructure Agent group will be overwritten with default values:"
13+ puts ' WARNING: The following existing rules on the PE Infrastructure Agent group will be overwritten with default values:'
1314 puts JSON . pretty_generate ( infrastructure_agent_group [ 'rule' ] )
1415 else
1516 puts JSON . pretty_generate ( { 'error' => 'PE Infrastructure Agent group does not exist' } )
@@ -39,4 +40,4 @@ def https(port)
3940unless ENV [ 'RSPEC_UNIT_TEST_MODE' ]
4041 Puppet . initialize_settings
4142 GetInfrastructureAgentGroupRules . new . execute!
42- end
43+ end
You can’t perform that action at this time.
0 commit comments