Skip to content

Mixed up boolean conversion in New-AppAssignment.ps1 #25

@obuolinis

Description

@obuolinis

Some mix up here with a wrong property converted to boolean.

if (-not([string]::IsNullOrEmpty($AppAssignmentItem.EnableRestartGracePeriod))) {
$AppAssignmentArgs.Add("EnableRestartGracePeriod", $AppAssignmentItem.EnableRestartGracePeriod)
}
if (-not([string]::IsNullOrEmpty($AppAssignmentItem.RestartGracePeriodInMinutes))) {
$AppAssignmentArgs.Add("RestartGracePeriod", [System.Convert]::ToBoolean($AppAssignmentItem.RestartGracePeriodInMinutes))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions