Skip to content

Argument list too long: '/bin/bash' #11

@karel-brinda

Description

@karel-brinda
File "/home/ubuntu/.local/bin/mof", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/.local/lib/python3.8/site-packages/mof/mof.py",
line 383, in main
    prep(objects=args.what)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/mof/mof.py",
line 235, in prep
    _prep_one(x)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/mof/mof.py",
line 229, in _prep_one
    _complete_nodes(bl, tree)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/mof/mof.py",
line 215, in _complete_nodes
    shell("touch {}".format(" ".join(node_names)), dn)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/mof/mof.py",
line 53, in shell
    return_code = subprocess.call([f'/bin/bash', '-c', wrap])
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 7] Argument list too long: '/bin/bash'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions