summaryrefslogtreecommitdiffstats
path: root/openlmi-mof-register
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-05-22 15:07:57 +0200
committerJan Safranek <jsafrane@redhat.com>2013-05-22 15:07:57 +0200
commitde411a7b84855bb420e39951fb4976edaa3d4e2b (patch)
tree16e98b81822a3f170946b345671f1fc4b85f87ef /openlmi-mof-register
parent69565f1da9d9c8ff86e5085675cd384ace5d3d3a (diff)
downloadopenlmi-providers-de411a7b84855bb420e39951fb4976edaa3d4e2b.zip
openlmi-providers-de411a7b84855bb420e39951fb4976edaa3d4e2b.tar.gz
openlmi-providers-de411a7b84855bb420e39951fb4976edaa3d4e2b.tar.xz
Deregister provider first and classes afterwards.
So we don't end up with removed classes but their providers still registered.
Diffstat (limited to 'openlmi-mof-register')
-rwxr-xr-xopenlmi-mof-register2
1 files changed, 1 insertions, 1 deletions
diff --git a/openlmi-mof-register b/openlmi-mof-register
index 37e90c1..50e4bc5 100755
--- a/openlmi-mof-register
+++ b/openlmi-mof-register
@@ -101,7 +101,6 @@ function unregister()
if [ $HAS_PEGASUS -eq 1 ] && echo $cimom | grep -q 'all\|tog-pegasus';
then
- mofcomp -n $namespace -r ${mofs[@]}
if [ -n "$reg" ];
then
for provider in $(sed -n 's/ *group: *//p' "$reg" | sort | uniq);
@@ -109,6 +108,7 @@ function unregister()
/usr/bin/cimprovider -d -m ${provider} && /usr/bin/cimprovider -r -m ${provider}
done
fi
+ mofcomp -n $namespace -r ${mofs[@]}
fi
}