Skip to content

Commit

Permalink
Merge pull request #17 from arjanoosting/fix-find_value-calls
Browse files Browse the repository at this point in the history
replace findValue with find_value
  • Loading branch information
Jainpriyal committed Apr 22, 2015
2 parents 8b5b274 + 9a0c6b0 commit 20af72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netconf/Device.php
Expand Up @@ -380,7 +380,7 @@ public function has_error() {
$reply = $this->convert_to_xml($this->last_rpc_reply);
$tagList[0] = "rpc-error";
$tagList[1] = "error-severity";
$errorSeverity = $reply->findValue($tagList);
$errorSeverity = $reply->find_value($tagList);
if ($errorSeverity != null && $errorSeverity == "error")
return true;
return false;
Expand All @@ -398,7 +398,7 @@ public function has_warning() {
$reply = $this->convert_to_xml($this->last_rpc_reply);
$tagList[0] = "rpc-error";
$tagList[1] = "error-severity";
$errorSeverity = $reply->findValue($tagList);
$errorSeverity = $reply->find_value($tagList);
if ($errorSeverity != null && $errorSeverity == "warning")
return true;
return false;
Expand Down Expand Up @@ -692,7 +692,7 @@ public function run_cli_command() {
return null;
}
$tags[0] = "output";
$output = $xmlreply->findValue($tags);
$output = $xmlreply->find_value($tags);
if ($output != null)
return $output;
return $rpcReply;
Expand Down

0 comments on commit 20af72a

Please sign in to comment.