Skip to content

Commit

Permalink
Merge 868a2c9 into fc5debc
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Steiner committed Feb 9, 2021
2 parents fc5debc + 868a2c9 commit 6de57ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ matrix:
python: 3.7
before_install:
- choco install python3 --version=3.7.4
- choco install openssl=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
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 6de57ed

Please sign in to comment.