Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ matrix:
python: 3.7
before_install:
- choco install python3 --version=3.7.4
- choco install openssl --version=1.1.1.900
- pip install ntc_templates==1.4.1
- pip install textfsm==0.4.1
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- TRAVIS_PYTHON_VERSION=3.7
- CRYPTOGRAPHY_DONT_BUILD_RUST=1
- INCLUDE='C:\OpenSSL-Win32\include'
- LIB='C:\OpenSSL-Win32\lib'
addons:
apt:
packages:
Expand All @@ -29,6 +33,7 @@ addons:
- libxslt1-dev

install:
- "set"
- "pip install -r development.txt"
- "pip install -r requirements.txt"
- "pip install ."
Expand Down
4 changes: 4 additions & 0 deletions lib/jnpr/junos/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ def diff(self, rb_id=0, ignore_warning=False, use_fast_diff=False):
else:
raise

# Check return type is an etree Element, if not return None for no changes
if not type(rsp) == etree._Element:
return None

diff_txt = rsp.find("configuration-output").text
return None if diff_txt == "\n" else diff_txt

Expand Down