|
24 | 24 | property :group, kind_of: String, required: false, default: 'go'
|
25 | 25 | property :autoregister_key, kind_of: String, required: true, default: nil
|
26 | 26 | property :autoregister_hostname, kind_of: String, required: false, default: nil
|
27 |
| -property :environments, kind_of: [String, Array], required: false, default: nil # deprecated in favour of autoreigster_environments |
28 | 27 | property :autoregister_environments, kind_of: [String, Array], required: false, default: nil
|
29 |
| -property :resources, kind_of: [String, Array], required: false, default: nil # deprecated in favour of autoreigster_resources |
30 | 28 | property :autoregister_resources, kind_of: [String, Array], required: false, default: nil
|
31 | 29 | property :elastic_agent_id, kind_of: [String, nil], required: false, default: nil
|
32 | 30 | property :elastic_agent_plugin_id, kind_of: [String, nil], required: false, default: nil
|
|
35 | 33 | autoregister_values = agent_properties
|
36 | 34 | autoregister_values[:key] = new_resource.autoregister_key || autoregister_values[:key]
|
37 | 35 | autoregister_values[:hostname] = new_resource.autoregister_hostname || autoregister_values[:hostname]
|
38 |
| - autoregister_values[:autoregister_environments] = new_resource.autoregister_environments || new_resource.environments || autoregister_values[:environments] |
39 |
| - autoregister_values[:autoregister_resources] = new_resource.autoregister_resources || new_resource.resources || autoregister_values[:resources] |
| 36 | + autoregister_values[:autoregister_environments] = new_resource.autoregister_environments || autoregister_values[:environments] |
| 37 | + autoregister_values[:autoregister_resources] = new_resource.autoregister_resources || autoregister_values[:resources] |
40 | 38 | autoregister_values[:elastic_agent_id] = new_resource.elastic_agent_id || autoregister_values[:elastic_agent_id]
|
41 | 39 | autoregister_values[:elastic_agent_plugin_id] = new_resource.elastic_agent_plugin_id || autoregister_values[:elastic_agent_plugin_id]
|
42 | 40 |
|
|
0 commit comments