diff options
author | Koren Lev <korenlev@gmail.com> | 2017-10-15 01:38:44 +0300 |
---|---|---|
committer | Koren Lev <korenlev@gmail.com> | 2017-10-14 22:41:31 +0000 |
commit | e2f2060cbb7d14aeb1aff7fbca1408fe54aedbb1 (patch) | |
tree | 5f637d5076d0f0a87c4a24bd315395e0ab3adf23 /app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py | |
parent | 3c9696e010451484fabb143a542c8364a4538669 (diff) |
added schemes to support new ui link options + fix api per new schemes
Change-Id: I768233f13749d01d436c24c764cb903ca19d3d2a
Signed-off-by: Koren Lev <korenlev@gmail.com>
(cherry picked from commit 41ac4c4e9a6112d8c98472a1be60e4869814f549)
Diffstat (limited to 'app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py')
-rw-r--r-- | app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py b/app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py index 77f149f..d988c35 100644 --- a/app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py +++ b/app/discover/fetchers/cli/cli_fetch_bond_host_pnics.py @@ -37,7 +37,7 @@ class CliFetchBondHostPnics(CliAccess): if lines and 'No such file or directory' in lines[0]: return [] # no bonds so directory does not exist bonds = [] - for line in lines: + for line in [l.strip() for l in lines]: bond = self.get_bond_details(host_id, line) if bond: bonds.append(bond) @@ -123,7 +123,7 @@ class CliFetchBondHostPnics(CliAccess): }) if not pnic: self.log.error('unable to find slave pNIC {} under bond {}' - .format(slave_id, interface_id)) + .format(slave['name'], interface_id)) return mac_address = pnic['mac_address'] slave_id = '{}-{}'.format(slave.get('name', ''), mac_address) |