I wanted to deprecated on 1.4.0 but 2.0.0 also throwing Documentation.deprecated errors (not agreeing, extra fields).
According to docs I just need to change modules → action in the deprecated meta declaration and reflect it in plugin docs but:
ERROR: Found 2 validate-modules issue(s) which need to be resolved:
ERROR: plugins/modules/remote_vars.py:0:0: deprecation-mismatch: "meta/runtime.yml" and DOCUMENTATION.deprecation do not agree.
ERROR: plugins/modules/remote_vars.py:0:0: invalid-documentation: DOCUMENTATION.deprecated: extra keys not allowed @ data['deprecated']. Got {'removed_in': '1.4.0', 'alternative': 'Use M(charlesrocket.essential.fetch_vars) instead.', 'removed_from_collection': 'charlesrocket.essential'}
Wasn’t sure if I should merge into a single plugin file or deprecate docs as well (sounds silly) but I feel like I am getting somewhere with this double deprecation
and once again, docs are clearly stating that why is optional:
Roles and modules fulfill very different needs so I wouldn’t be surprised if no one anticipated someone wanting to point to an alternative that was not of the same type.
The issue was M(role) in the module’s documentation. Tried with “R” when failed to find any docs on role deprecation — tests are green (?) but docsite outputs an error instead of the string. Going with the code attribute then