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
The validate step fails for all polices with an error message of check_deprecations for manheim-c7n-tools version 1.4.0.
It appears that deprecation framework added in cloud custodian version 0.9.13 wants an attribute check_deprecations added to the object passed to the validate function. Without that attribute existing, this line causes an AttributeError that is then reported as making the policy invalid.
This could possibly be viewed as an issue with cloud custodian itself, as the check_deprecations attribute may have been needed to be included as part of an empty config here.
I've fixed the issue by adding check_deprecations="yes" to the instantiation of the config for the ValidateStep here.
For others encountering this issue, you can use this invocation of the docker container to add the necessary attribute to the Config object passed to validate:
The validate step fails for all polices with an error message of
check_deprecations
for manheim-c7n-tools version 1.4.0.It appears that deprecation framework added in cloud custodian version 0.9.13 wants an attribute
check_deprecations
added to the object passed to thevalidate
function. Without that attribute existing, this line causes an AttributeError that is then reported as making the policy invalid.This could possibly be viewed as an issue with cloud custodian itself, as the
check_deprecations
attribute may have been needed to be included as part of an empty config here.I've fixed the issue by adding
check_deprecations="yes"
to the instantiation of the config for the ValidateStep here.For others encountering this issue, you can use this invocation of the docker container to add the necessary attribute to the Config object passed to validate:
The text was updated successfully, but these errors were encountered: