Fix up sanity problems

pull/82519/head
Jordan Borean 11 months ago
parent bb48701e0d
commit 259a6df398
No known key found for this signature in database
GPG Key ID: 2AAC89085FBBDAB5

@ -17,10 +17,8 @@
from __future__ import annotations from __future__ import annotations
import datetime
from yaml.constructor import SafeConstructor, ConstructorError from yaml.constructor import SafeConstructor, ConstructorError
from yaml.nodes import MappingNode, Node from yaml.nodes import MappingNode
from ansible import constants as C from ansible import constants as C
from ansible.module_utils.common.text.converters import to_bytes, to_native from ansible.module_utils.common.text.converters import to_bytes, to_native
@ -120,7 +118,7 @@ class AnsibleConstructor(SafeConstructor):
data.extend(self.construct_sequence(node)) data.extend(self.construct_sequence(node))
data.ansible_pos = self._node_position_info(node) data.ansible_pos = self._node_position_info(node)
def construct_yaml_timestamp(self, node: Node) -> datetime.datetime: def construct_yaml_timestamp(self, node):
ds, line, column = self._node_position_info(node) ds, line, column = self._node_position_info(node)
msg = ( msg = (
f"Found YAML value '{node.value}' that has been converted to a datetime object from " f"Found YAML value '{node.value}' that has been converted to a datetime object from "

Loading…
Cancel
Save