forked from trigger/trigger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix causing CSVLoader for netdevices to always succeed
- Updated docs/conf.py to use the new RTD theme (next-gen!) - Updated docs for CSV support to match reality - Bump version to 1.4.2b9
- Loading branch information
Showing
7 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
test1-abc.net.aol.com,juniper,router | ||
test2-abc.net.aol.com,juniper,router | ||
fw1-xyz.net.aol.com,netscreen,firewall | ||
lab1-switch.net.aol.com,foundry,switch | ||
test1-abc.net.aol.com,juniper,up,router | ||
test2-abc.net.aol.com,juniper,up,router | ||
fw1-xyz.net.aol.com,netscreen,up,firewall | ||
lab1-switch.net.aol.com,foundry,up,switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,8 @@ | |
__author__ = 'Jathan McCollum' | ||
__maintainer__ = 'Jathan McCollum' | ||
__email__ = '[email protected]' | ||
__copyright__ = 'Copyright 2012-2012, AOL Inc.' | ||
__version__ = '0.1' | ||
__copyright__ = 'Copyright 2012-2012, AOL Inc.; 2013 Salesforce.com' | ||
__version__ = '0.1.1' | ||
|
||
import collections | ||
import copy | ||
|
@@ -94,6 +94,8 @@ def parse_rancid_file(rancid_root, filename=RANCID_DB_FILE, fields=None, | |
(Optional) Field delimiter | ||
""" | ||
device_data = _parse_delimited_file(rancid_root, filename, delimiter) | ||
if not device_data: | ||
return None # Always return None if there are no results | ||
|
||
# Make sure fields is not null and is some kind of iterable | ||
if not fields: | ||
|