diff --git a/.travis.yml b/.travis.yml index f15767f44..6e043186f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ matrix: - python: nightly install: - - pip install tox==3.14.0 tox-travis==0.12 coveralls==1.8.2 + - pip install tox==3.14.0 tox-travis==0.12 coveralls==2.2.0 deploy: provider: pypi diff --git a/napalm/nxos/nxos.py b/napalm/nxos/nxos.py index 47a3c198b..ad14ed537 100644 --- a/napalm/nxos/nxos.py +++ b/napalm/nxos/nxos.py @@ -837,10 +837,10 @@ def get_facts(self): "sys_ver_str", show_version.get("kickstart_ver_str", "") ) - uptime_days = show_version.get("kern_uptm_days", 0) - uptime_hours = show_version.get("kern_uptm_hrs", 0) - uptime_mins = show_version.get("kern_uptm_mins", 0) - uptime_secs = show_version.get("kern_uptm_secs", 0) + uptime_days = int(show_version.get("kern_uptm_days", 0)) + uptime_hours = int(show_version.get("kern_uptm_hrs", 0)) + uptime_mins = int(show_version.get("kern_uptm_mins", 0)) + uptime_secs = int(show_version.get("kern_uptm_secs", 0)) uptime = 0 uptime += uptime_days * 24 * 60 * 60