summaryrefslogtreecommitdiffstats
path: root/openlmi-mof-register
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-11-15 13:03:02 +0100
committerJan Safranek <jsafrane@redhat.com>2013-11-15 13:03:02 +0100
commit70e0264a01c4af14707a04d07002f1f3c7d17227 (patch)
treedae52c8e8d46eea7fc34d0db331add3c7dcbea7c /openlmi-mof-register
parentfd36206ba36e169eaad9421b0e624feb02b5abff (diff)
downloadopenlmi-providers-70e0264a01c4af14707a04d07002f1f3c7d17227.zip
openlmi-providers-70e0264a01c4af14707a04d07002f1f3c7d17227.tar.gz
openlmi-providers-70e0264a01c4af14707a04d07002f1f3c7d17227.tar.xz
Fixed reregistration to sfcbd.
We register some mof files only to Pegasus. These files should be skipped correctly when re-registering all mof files to sfcbd. Resolves: rhbz#1029008
Diffstat (limited to 'openlmi-mof-register')
-rwxr-xr-xopenlmi-mof-register3
1 files changed, 3 insertions, 0 deletions
diff --git a/openlmi-mof-register b/openlmi-mof-register
index f04d8f8..85fbcd3 100755
--- a/openlmi-mof-register
+++ b/openlmi-mof-register
@@ -377,6 +377,9 @@ def db_get_cimom_opts(cursor, cimom, reg_id):
cur = cursor.execute("SELECT namespace, version FROM cimom_opts \
WHERE (cimom = ? and registration_id = ?)", (cimom, reg_id))
row = cur.fetchone()
+ if not row:
+ # No registration for this CIMOM
+ return (None, None)
namespace = row[0]
version = row[1]
return (namespace, version)