Skip to content

Commit

Permalink
Merge pull request #177 from Cool34000/Few-fixes
Browse files Browse the repository at this point in the history
Fix Wrong URI upgrade-paths and no results for backup
  • Loading branch information
alagoutte committed Mar 22, 2022
2 parents d83d3a2 + ef4ac11 commit 98deef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PowerFGT/Public/monitor/system/config/backup.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2020, Alexis La Goutte <alexis dot lagoutte at gmail dot com>
# Copyright 2022, Alexis La Goutte <alexis dot lagoutte at gmail dot com>
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down Expand Up @@ -52,7 +52,7 @@ function Get-FGTMonitorSystemConfigBackup {

$uri = 'api/v2/monitor/system/config/backup?scope=global'
$response = Invoke-FGTRestMethod -uri $uri -method 'GET' -connection $connection @invokeParams
$response.results
$response
}

End {
Expand Down
2 changes: 1 addition & 1 deletion PowerFGT/Public/monitor/system/firmware.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Get-FGTMonitorSystemFirmware {

$uri = 'api/v2/monitor/system/firmware'
if ($upgrade_paths) {
$uri += "/upgrade_paths"
$uri += "/upgrade-paths"
}
$response = Invoke-FGTRestMethod -uri $uri -method 'GET' -connection $connection
$response.results
Expand Down

0 comments on commit 98deef4

Please sign in to comment.