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

52 Datastore Consistency v1.2.5 #104

Closed
parodymshifter opened this issue Feb 6, 2014 · 2 comments
Closed

52 Datastore Consistency v1.2.5 #104

parodymshifter opened this issue Feb 6, 2014 · 2 comments

Comments

@parodymshifter
Copy link

I'm curious as to what to do about this error.

12:44:24 AM ..start calculating Datastore Consistency by Robert Sexstone v1.2.5
parsing ":local|datastore" - Quantifier {x,y} following nothing.
At C:\Users\xxx\Downloads\vCheck-vSphere-master-2014-02-06\vCheck-vSphere-master\Plugins\52 Datastore Consistency.ps1:23
char:33

  • @($problemDatastores | Where { $_.Datastore -notmatch $DSDoNotInclude })
  •                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (:) [], ArgumentException
    • FullyQualifiedErrorId : System.ArgumentException

I get quite a few of these errors. Does there need to be some logic added to see if problemDatastores actually has something in it? Or is there something else wrong with the way the match is constructed?

It looks like there should be this

if ($problemDatastores -ne $null) {

}
put around line 23 of the current version.

@parodymshifter
Copy link
Author

On further investigation it turned out to be a bad regexp in the exclusion string. After cleaning that up it worked just fine.

@parodymshifter
Copy link
Author

See this thread:

#124

From: Lempke [mailto:notifications@github.com]
Sent: Tuesday, February 11, 2014 11:27 AM
To: alanrenouf/vCheck-vSphere
Cc: Boyd, Robert
Subject: Re: [vCheck-vSphere] 52 Datastore Consistency v1.2.5 (#104)

Hi parodymshifter, where did you clean up the bad regex, or in which exclusion string? i cannot find what is going wrong here.. and it looks like we are experiencing the same problems;

parsing ":local|datastore" - Quantifier {x,y} following nothing.
At E:\vCheck-vSphere-vcdvc013\Plugins\52 Datastore Consistency.ps1:23 char:33

  • @($problemDatastores | Where { $_.Datastore -notmatch $DSDoNotInclude })
  • CategoryInfo : OperationStopped: (:) [], ArgumentException
  • FullyQualifiedErrorId : System.ArgumentException


Reply to this email directly or view it on GitHubhttps://github.com//issues/104#issuecomment-34771635.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant