Skip to content

Commit

Permalink
init/updateFortiOSTerraform: 1.18.1
Browse files Browse the repository at this point in the history
Signed-off-by: -HQCM <[email protected]>
  • Loading branch information
FTNT-HQCM committed Nov 15, 2023
1 parent cd5ed54 commit b7d37ff
Show file tree
Hide file tree
Showing 199 changed files with 4,243 additions and 3,920 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
## 1.19.0 (Unreleased)


## 1.18.1 (Nov 14, 2023)
BUG FIXES:

* Fix move resources always show changes issue (#289);
* Fix extra spaces issue (#299);

IMPROVEMENTS:

* Support FortiOS v7.0.13, 7.2.6;
* Set non-order variables to TypeSet;
* Set variable 'name' as required of resource fortios_user_ldap (#298);

FEATURES:

* **New Data source:** `data_source_vpnssl_settings`

## 1.18.0 (Sep 11, 2023)
BUG FIXES:

Expand Down
14 changes: 14 additions & 0 deletions fortios/data_source_system_fortiguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func dataSourceSystemFortiguard() *schema.Resource {
Type: schema.TypeInt,
Computed: true,
},
"gui_prompt_auto_upgrade": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"fds_license_expiring_days": &schema.Schema{
Type: schema.TypeInt,
Computed: true,
Expand Down Expand Up @@ -399,6 +403,10 @@ func dataSourceFlattenSystemFortiguardAutoFirmwareUpgradeEndHour(v interface{},
return v
}

func dataSourceFlattenSystemFortiguardGuiPromptAutoUpgrade(v interface{}, d *schema.ResourceData, pre string) interface{} {
return v
}

func dataSourceFlattenSystemFortiguardFdsLicenseExpiringDays(v interface{}, d *schema.ResourceData, pre string) interface{} {
return v
}
Expand Down Expand Up @@ -694,6 +702,12 @@ func dataSourceRefreshObjectSystemFortiguard(d *schema.ResourceData, o map[strin
}
}

if err = d.Set("gui_prompt_auto_upgrade", dataSourceFlattenSystemFortiguardGuiPromptAutoUpgrade(o["gui-prompt-auto-upgrade"], d, "gui_prompt_auto_upgrade")); err != nil {
if !fortiAPIPatch(o["gui-prompt-auto-upgrade"]) {
return fmt.Errorf("Error reading gui_prompt_auto_upgrade: %v", err)
}
}

if err = d.Set("fds_license_expiring_days", dataSourceFlattenSystemFortiguardFdsLicenseExpiringDays(o["FDS-license-expiring-days"], d, "fds_license_expiring_days")); err != nil {
if !fortiAPIPatch(o["FDS-license-expiring-days"]) {
return fmt.Errorf("Error reading fds_license_expiring_days: %v", err)
Expand Down
Loading

0 comments on commit b7d37ff

Please sign in to comment.