Skip to content

Using -WhatIf or omitting -Confirm:$false/-Force fails on functions #15

Description

@kbakk

I noticied this when running the commands Set-isiClusterOwner -location "Bergen"

Expected: The command should prompt if I want to continue, stating the cluster I'm performing the action on.

Actual:

Set-isiClusterOwner : The variable '$parameter1' cannot be retrieved because it has not been set.
At line:1 char:1
+ Set-isiClusterOwner -location "Bergen"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (parameter1:String) [Set-isiClusterOwner], RuntimeException
    + FullyQualifiedErrorId : VariableIsUndefined,Set-isiClusterOwner

Going through IsilonPlatformSet.ps1 and IsilonPlatformRemove.ps1, I notice several cases where $parameter1 is not set.

This may be related to #12 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions