Hi,
I tried to use the following code to remove a DRS rule but it did not work.
my $ruleinfo = ClusterRuleInfo->new(name => "testrule");
my $rules_spec = ClusterRuleSpec->new(info => $ruleinfo,
operation => ArrayUpdateOperation->new('remove'));
my @my_rules_spec = ($rules_spec);
my $spec = ClusterConfigSpecEx->new(rulesSpec => \@my_rules_spec);
eval {
$cluster_view->ReconfigureComputeResource_Task(spec => $spec,
modify => 'false');
Anyone knows what is wrong? Also, there is a "removeKey" property in ClusterRuleSpec, what is it for?
Thanks.
- Sean