You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback:
2020-11-18 19:38:59,551: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/c7n/policy.py", line 316, in run
results = a.process(resources)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/actions/core.py", line 65, in process
self.process_resource_set(client, model, resource_set)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/actions/core.py", line 73, in process_resource_set
result = self.invoke_api(client, op_name, params)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/actions/core.py", line 79, in invoke_api
return client.execute_command(op_name, params)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/client.py", line 398, in execute_command
request = self._build_request(verb, verb_arguments)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/client.py", line 345, in _build_request
method = getattr(self._component, verb)
AttributeError: 'Resource' object has no attribute 'disable'
custodian version --debug output
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@Ripza thanks for the info, it seems like the right thing would be to just switch out from the 'deprecated'/broken servicemanagement api to service-usage.. i've added a pull request to that effect.
Describe the bug
disable action not working for gcp.service resource type
To Reproduce
run the example code found in https://cloudcustodian.io/docs/gcp/resources/service.html
Expected behavior
expected an enabled service to be explicitly disabled... Instead, got a error in the code.
Background (please complete the following information):
2020-11-18 19:38:59,551: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/c7n/policy.py", line 316, in run
results = a.process(resources)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/actions/core.py", line 65, in process
self.process_resource_set(client, model, resource_set)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/actions/core.py", line 73, in process_resource_set
result = self.invoke_api(client, op_name, params)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/actions/core.py", line 79, in invoke_api
return client.execute_command(op_name, params)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/client.py", line 398, in execute_command
request = self._build_request(verb, verb_arguments)
File "/usr/local/lib/python3.7/dist-packages/c7n_gcp/client.py", line 345, in _build_request
method = getattr(self._component, verb)
AttributeError: 'Resource' object has no attribute 'disable'
custodian version --debug
outputAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: