Skip to content

Commit

Permalink
build dependencies; python3.5 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotone committed Jan 8, 2020
1 parent d1f3cfe commit 0f86095
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pythopackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
Expand Down
17 changes: 8 additions & 9 deletions napalm_arubaoss/ArubaOS.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import requests
import base64
import logging
from time import sleep

from itertools import zip_longest
from time import sleep

import requests
import logging
from netaddr import IPNetwork

from napalm.base.helpers import textfsm_extractor
from napalm.base.base import NetworkDriver
from napalm.base.exceptions import (
MergeConfigException,
ReplaceConfigException,
ConnectAuthError,
ConnectionClosedException,
CommandErrorException,
CommandTimeoutException
CommandTimeoutException,
MergeConfigException,
ReplaceConfigException
)

""" Debugging
Expand Down Expand Up @@ -546,8 +545,8 @@ def _config_batch(self, cmd_list):
if check_status.status_code == 200:
for cmd_status in check_status.json()['cmd_exec_logs']:
if cmd_status['status'] != "CCS_SUCCESS":
log.debug(f"command failed to execute with error \
{cmd_status['result']}")
log.debug("command failed to execute with error \
{}".format(cmd_status['result']))
return False
else:
return True
Expand Down
1 change: 0 additions & 1 deletion napalm_arubaoss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
""" load napalm_arubaoss.ArubaOS class """

from napalm_arubaoss.ArubaOS import AOS

__all__ = ("ArubaOSS",)

0 comments on commit 0f86095

Please sign in to comment.