Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salt execution module junos.install_config with invalid mode throws exception ValueError: unsupported action: test #103

Closed
rsmekala opened this issue Apr 12, 2019 · 1 comment

Comments

@rsmekala
Copy link

Description of Issue/Question

root@nms5-salt-master-b:/srv/salt# salt "vmx1" junos.install_config salt://config.set mode=test

vmx1:
    The minion function caused an exception: Traceback (most recent call last):
      File "/usr/local/lib/python2.7/site-packages/salt/minion.py", line 1660, in _thread_return
        return_data = minion_instance.executors[fname](opts, data, func, args, kwargs)
      File "/usr/local/lib/python2.7/site-packages/salt/executors/direct_call.py", line 12, in execute
        return func(*args, **kwargs)
      File "/usr/local/lib/python2.7/site-packages/salt/modules/junos.py", line 99, in wrapper
        return function(*args, **kwargs)
      File "/usr/local/lib/python2.7/site-packages/salt/modules/junos.py", line 921, in install_config
        with Config(conn, mode=db_mode) as cu:
      File "/usr/local/lib/python2.7/site-packages/jnpr/junos/utils/config.py", line 832, in __enter__
        }.get(self.mode, _unsupported_option)()
      File "/usr/local/lib/python2.7/site-packages/jnpr/junos/utils/config.py", line 817, in _unsupported_option
        raise ValueError("unsupported action: {}".format(self.mode))
    ValueError: unsupported action: test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant