diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-05-22 15:06:07 +0200 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-05-22 15:06:07 +0200 |
commit | 6e1504b046695452f5d7f0e82789d9cfc19c1355 (patch) | |
tree | c1be4b4915d57ed7f72e95dfff8af9d2c1f26b11 | |
parent | f919b06c841d1f11fa9135bccbe8e3dd08db1db8 (diff) | |
download | openlmi-providers-6e1504b046695452f5d7f0e82789d9cfc19c1355.tar.gz openlmi-providers-6e1504b046695452f5d7f0e82789d9cfc19c1355.tar.xz openlmi-providers-6e1504b046695452f5d7f0e82789d9cfc19c1355.zip |
Use mofcomp from pywbem to parse MOF files and remove all its classes and instances from Pegasus
Our openlmi-cimmof seems to be error prone and pywbem works just fine.
-rwxr-xr-x | openlmi-mof-register | 6 |
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); |