Skip to content

Commit

Permalink
resource-agents: fix utility to obtain data from ccs_tool
Browse files Browse the repository at this point in the history
Resolves: rhbz#631943
  • Loading branch information
marxsk committed Oct 1, 2010
1 parent 364277f commit d5902e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rgmanager/src/resources/utils/config-utils.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ ccs_get()

outp=$(ccs_tool query "$key" 2>&1)
if [ $? -ne 0 ]; then
if [[ "$outp" =~ "Query failed: Invalid argument" ]]; then
# This usually means that element does not exist
# e.g. when checking for IP address
return 0;
fi

if [ "$outp" = "${outp/No data available/}" ] || [ "$outp" = "${outp/Operation not permitted/}" ]; then
ocf_log err "$outp ($key)"
return $FAIL
Expand Down

0 comments on commit d5902e0

Please sign in to comment.