Skip to content

Commit

Permalink
invoke self.parse() to ensure errors, if any, have been detetcted bef…
Browse files Browse the repository at this point in the history
…ore check in ok()
  • Loading branch information
einarnn committed Sep 19, 2018
1 parent 92d8932 commit 1d3f384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ncclient/operations/rpc.py
Expand Up @@ -165,6 +165,7 @@ def xml(self):
@property
def ok(self):
"Boolean value indicating if there were no errors."
self.parse()
return not self.errors # empty list => false

@property
Expand Down

0 comments on commit 1d3f384

Please sign in to comment.