Advertisement
Guest User

Untitled

a guest
Nov 13th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. root@noc:/opt/noc/sa/profiles/Cisco/IOS # hg diff
  2. diff -r 4afa39ee7cd6 sa/profiles/Cisco/IOS/get_inventory.py
  3. --- a/sa/profiles/Cisco/IOS/get_inventory.py Wed Nov 13 12:42:41 2013 +0400
  4. +++ b/sa/profiles/Cisco/IOS/get_inventory.py Wed Nov 13 12:48:52 2013 +0400
  5. @@ -39,6 +39,10 @@
  6. match.group("name"), match.group("pid"),
  7. match.group("descr")
  8. )
  9. + if len(objects)==0:
  10. + type = "CHASSIS"
  11. + number = None
  12. + part_no = match.group("pid")
  13. if not part_no:
  14. print "!!! UNKNOWN: ", match.groupdict()
  15. continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement