Displaying 2 results from an estimated 2 matches for "klass_key".
2009 Jul 21
1
[PATCH server] Fixed db-omatic so it doesn't segfault because of newer qmf api.
...s(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index 155ff5e..b5b7b81 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -270,10 +270,10 @@ class DbOmatic < Qpid::Qmf::Console
end
def object_props(broker, obj)
- target = obj.klass_key[0]
+ target = obj.schema.klass_key.package
return if target != "com.redhat.libvirt"
- type = obj.klass_key[1]
+ type = obj.schema.klass_key.klass_name
# I just sync this whole thing because there shouldn't be a lot of contention here.....
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...ogger.info "Host #{host_info['hostname']} is not up after waiting 20 seconds, skipping dead VM check."
else
@@ -301,16 +304,23 @@ class DbOmatic < Qpid::Qmf::Console
end
end
- def object_props(broker, obj)
- target = obj.schema.klass_key.package
+ def object_update(obj, hasProps, hasStats)
+ target = obj.object_class.package_name
+ type = obj.object_class.class_name
return if target != "com.redhat.libvirt"
- type = obj.schema.klass_key.klass_name
+ if hasProps
+ update_...