Skip to content

Commit 61ed233

Browse files
authored
Merge pull request xapi-project#3715 from jonludlam/CA-298318
CA-298318: Set the SM name_label correctly
2 parents 98e72dd + a4c1554 commit 61ed233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xapi/xapi_sm.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ let update_from_query_result ~__context (self, r) q_result =
6666
info "Registering SM plugin %s (version %s)" (String.lowercase_ascii q_result.driver) q_result.version;
6767
if r.API.sM_type <> _type
6868
then Db.SM.set_type ~__context ~self ~value:_type;
69-
if r.API.sM_name_label <> query_result.name
70-
then Db.SM.set_name_label ~__context ~self ~value:query_result.name;
69+
if r.API.sM_name_label <> q_result.name
70+
then Db.SM.set_name_label ~__context ~self ~value:q_result.name;
7171
if r.API.sM_name_description <> q_result.description
7272
then Db.SM.set_name_description ~__context ~self ~value:q_result.description;
7373
if r.API.sM_vendor <> q_result.vendor

0 commit comments

Comments
 (0)