Giter Club home page Giter Club logo

Comments (2)

samccann avatar samccann commented on July 1, 2024

Traceback:

raceback (most recent call last):
File "/home/samccann/ansible-navigator_demo/venv/bin/ansible-navigator", line 8, in
sys.exit(main())
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/cli.py", line 327, in main
run(args)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/cli.py", line 293, in run
wrapper(ActionRunner(args=args).run)
File "/usr/lib64/python3.9/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/action_runner.py", line 51, in run
self._run_app(interaction)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/action_runner.py", line 60, in _run_app
interaction = run_action(
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/actions/_actions.py", line 68, in call
return action_cls(app.args).run(app=app, interaction=interaction)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/actions/template.py", line 44, in run
templated = templar(string=str(interaction.action.value), template_vars=template_vars)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible_navigator/utils.py", line 78, in templar
result = ansible_templar.template(string)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible/template/init.py", line 789, in template
result = self.do_template(
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible/template/init.py", line 1057, in do_template
res = j2_concat(rf)
File "", line 13, in root
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible/template/init.py", line 255, in wrapper
ret = func(*args, **kwargs)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/ansible/plugins/filter/core.py", line 212, in from_yaml
return yaml.safe_load(data)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/init.py", line 162, in safe_load
return load(stream, SafeLoader)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 111, in compose_sequence_node
node.value.append(self.compose_node(node, index))
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 111, in compose_sequence_node
node.value.append(self.compose_node(node, index))
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/parser.py", line 428, in parse_block_mapping_key
if self.check_token(KeyToken):
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/scanner.py", line 223, in fetch_more_tokens
return self.fetch_value()
File "/home/samccann/ansible-navigator_demo/venv/lib64/python3.9/site-packages/yaml/scanner.py", line 577, in fetch_value
raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
in "", line 30, column 26:
- U+007B src: x, dest: y U+007D

from ansible-navigator.

cidrblock avatar cidrblock commented on July 1, 2024

The need for from_yaml has been removed with better yaml presentation, it's also no longer available with the removal of the internal ansible calls. Only jinja filter are available now

from ansible-navigator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.