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
I have yaml file with multiple document . I am trying to read a value from one of the document and I am getting this error while trying to access "spec.selector.name" .
Traceback (most recent call last):
File "/tmp/ansible_yedit_payload_v_m8fh76/__main__.py", line 499, in load
AttributeError: module 'yaml' has no attribute 'RoundTripLoader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/ansible_yedit_payload_v_m8fh76/__main__.py", line 501, in load
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 94, in safe_load
return load(stream, SafeLoader)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 72, in load
return loader.get_single_data()
File "/usr/lib/python3/dist-packages/yaml/constructor.py", line 35, in get_single_data
node = self.get_single_node()
File "/usr/lib/python3/dist-packages/yaml/composer.py", line 43, in get_single_node
event.start_mark)
yaml.composer.ComposerError: expected a single document in the stream
in "<unicode string>", line 1, column 1:
apiVersion: apiextensions.k8s.io ...
^
but found another document
in "<unicode string>", line 14, column 1:
---
^
Is there a way to resolve this ?
The text was updated successfully, but these errors were encountered:
I have yaml file with multiple document . I am trying to read a value from one of the document and I am getting this error while trying to access "spec.selector.name" .
Below is the yaml:
Error:
Is there a way to resolve this ?
The text was updated successfully, but these errors were encountered: