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

Fix Wrong URI upgrade-paths and no results for backup #177

Merged
merged 5 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
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
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