Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions File Shares/FileShares.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function writeOutput {
Write-Host "Disk Path: `t" -ForegroundColor Gray -NoNewline
Write-Host "`t `t" $DiskPath "`n"

<#Write-Host "Permissions: `t" -ForegroundColor Gray -NoNewline
Write-Host "`t `t" $permissions "`n"#>
Write-Host "Permissions: `t" -ForegroundColor Gray -NoNewline
Write-Host "`t `t" $permissions "`n"
}

function updateAPIConfigFile {
Expand Down Expand Up @@ -238,13 +238,13 @@ else {
$api__org_id = $api__body.data.attributes.organization_id
$api__flex_asset_id = $api_config.flex_asset_id

if($api__org_id) {
#if($api__org_id) {
Write-Host "Creating a new flexible asset."

$api__output_data = New-ITGlueFlexibleAssets -data $api__body

$api__output_data
}
#}
}
else {
Write-Error "ERROR: File Shares flex asset configuration file was found. Please create one and re-run the script."
Expand All @@ -258,4 +258,4 @@ else {
if($file){
$SaveData | export-csv -Path $file -NoTypeInformation
}
}
}