summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xopenlmi-mof-register6
1 files changed, 1 insertions, 5 deletions
diff --git a/openlmi-mof-register b/openlmi-mof-register
index a912e0a..3c2b6fa 100755
--- a/openlmi-mof-register
+++ b/openlmi-mof-register
@@ -101,11 +101,7 @@ function unregister()
if [ $HAS_PEGASUS -eq 1 ] && echo $cimom | grep -q 'all\|tog-pegasus';
then
- if [ -x $(dirname $0)/openlmi-cimmof ]; then
- $(dirname $0)/openlmi-cimmof -n $namespace delete ${mofs[@]}
- else
- /usr/libexec/openlmi-cimmof -n $namespace delete ${mofs[@]}
- fi
+ mofcomp -n $namespace -r ${mofs[@]}
if [ -n "$reg" ];
then
for provider in $(sed -n 's/ *location: *//p' "$reg" | sort | uniq);