Skip to content

Commit

Permalink
Merge 0851134 into fc5debc
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Steiner committed Feb 8, 2021
2 parents fc5debc + 0851134 commit 764fdfb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ matrix:
python: 3.7
before_install:
- choco install python3 --version=3.7.4
- choco install rust --version=1.49.0
- 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
- LIBPATH=/c/utils/OpenSSL-win64/lib
- INCLUDE=/c/utils/OpenSSL-win64/include
addons:
apt:
packages:
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

0 comments on commit 764fdfb

Please sign in to comment.