Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at addition in empty group the VM list #12

Closed
SVGV opened this issue Sep 22, 2017 · 1 comment
Closed

Error at addition in empty group the VM list #12

SVGV opened this issue Sep 22, 2017 · 1 comment
Assignees
Labels

Comments

@SVGV
Copy link

SVGV commented Sep 22, 2017

At addition in empty group the VM list

Set-DrsVMGroup -Name $vmDRSgroup -Append -VM $CNVMlist.Name -Cluster $cluster
Compare-Object : Cannot bind argument to parameter 'ReferenceObject' because it is null.
At C:\Program Files (x86)\WindowsPowerShell\Modules\DRSRule\DRSRule.psm1:1088 char:60
+         elseif ($null -eq (Compare-Object -ReferenceObject $arrOriginalVMIDsInTa ...
+                                                            ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObjectCommand
PS C:\> $vmDRSgroup
xx-NK

PS C:\> $CNVMlist.Name
89-NK-SQL02
77-NK-APP03
15-NK-TRM02
89-NK-PRN01
16-NK-1C03
@SVGV
Copy link
Author

SVGV commented Sep 22, 2017

Such mistake appears when in the xx-NK group there are no VM.
when add one VM everything begins to work correctly

@mtboren mtboren added the bug label Nov 1, 2017
@mtboren mtboren self-assigned this Nov 1, 2017
@mtboren mtboren closed this as completed in 876d70c Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants