From bbf3fa3e1a3298dbfd21891ca478aacfc2cfeb22 Mon Sep 17 00:00:00 2001 From: Klaus Kämpf Date: Mon, 13 Sep 2010 16:11:52 +0200 Subject: references and associators enumeration commands cause an inverse request In wsmancli-2.2.3, we notice that the references and associators enumeration commands cause an inverse request. That is, a "references" action command adds a "wsmb:AssociatedInstances" in the enumeration filter. And an "associators" action command adds a "wsmb:AssociationInstances" in the enumeration filter. An "associators" command DSP0200 section 5.3.2.14 enumerates "associated" classes. This statement is also defined by DSP0227 section 17.1 where it specifies in section 17.1.7 the use of "wsmb:AssociatedInstances" element in the filter. A "references" command DSP0200 section 5.3.2.16 enumerates "association" classes. This statement is also defined by DSP0227 section 17.1 where it specifies in section 17.1.9 the use of "wsmb:AssociationInstances" element in the filter. --- src/wsman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wsman.c b/src/wsman.c index 438d05c..1809cc9 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -826,7 +826,7 @@ int main(int argc, char **argv) epr_delete_selector(epr, "ResultRole"); resultProperties = get_include_result_property(&propNum); - filter = filter_create_assoc(epr, (op == WSMAN_ACTION_REFERENCES )?0:1, + filter = filter_create_assoc(epr, (op == WSMAN_ACTION_ASSOCIATORS )?0:1, assocClass, resultClass, role, resultRole, resultProperties, propNum); free_include_result_property(resultProperties); -- cgit