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

Search Current Path for MOF file #181

Closed
iainbrighton opened this issue Jan 29, 2017 · 0 comments
Closed

Search Current Path for MOF file #181

iainbrighton opened this issue Jan 29, 2017 · 0 comments

Comments

@iainbrighton
Copy link
Contributor

The current logic for locating .mof files is:

  • If -Path is specified, use that path for <VM_Name.mof>
  • If -Path is not specified, use the default configuration path - (Get-LabHostDefault).ConfigurationPath

I think it would avoid confusion if the logic was updated to:

  • If -Path not specified:
    • Search ConfigurationPath for <VM_Name.mof>
    • If not found but a configuration name is defined, search ConfigurationPath\ConfigurationName for <VM_Name.mof> (also addresses Add in Lab name to the module #78)
    • If not found, search $PWD for <VM_Name.mof>
  • If -Path is specified
    • Search the specified path for <VM_Name.mof>
    • If not found but a configuration name is defined, search ConfigurationPath\ConfigurationName for <VM_Name.mof> (also addresses Add in Lab name to the module #78)
@iainbrighton iainbrighton changed the title Use current path Search Current Path for MOF file Jan 29, 2017
This was referenced Mar 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant