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

get_interfaces has cryptic error when you typo the interface name #23

Open
Mierdin opened this issue Jul 4, 2017 · 0 comments
Open
Assignees

Comments

@Mierdin
Copy link
Contributor

Mierdin commented Jul 4, 2017

Should improve this. Need to detect when result is empty and return useful message first.

vagrant@st2vagrant:~$ st2 run napalm.get_interfaces hostname=vsrx01 interface="foobar0/0/1"
..
id: 595adcddc4da5f0521ea9082
status: failed
parameters:
  hostname: vsrx01
  interface: foobar0/0/1
result:
  exit_code: 0
  result: '''NoneType'' object does not support item assignment'
  stderr: 'st2.actions.python.NapalmGetInterfaces: ERROR    ''NoneType'' object does not support item assignment

    '
  stdout: ''
@Mierdin Mierdin self-assigned this Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant