File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ function Get-IPStackAPIKey {
19
19
[string ]$newKey = $null
20
20
[string ]$AccessKeyFromFile = $null
21
21
[string ]$saveChoice = $null
22
- [bool ]$AccessKeyValid = $false
23
- [bool ]$GeoIPFromCommandLine = $Global :Hawk.EnableGeoIPLocation
24
- Out-LogFile " GeoIPFromCommandLine -> $GeoIPFromCommandLine " - Information
22
+ [bool ]$GeoIPFromCommandLine = $Global :Hawk.GeoIPNonInteractive
23
+ Out-LogFile " IPSTACKIPKEY::GeoIPFromCommandLine: $GeoIPFromCommandLine " - Information
25
24
}
26
25
27
26
process {
Original file line number Diff line number Diff line change 238
238
239
239
# Create the global $Hawk variable immediately with minimal properties
240
240
$Global :Hawk = [PSCustomObject ]@ {
241
- FilePath = $null # Will be set shortly
242
- DaysToLookBack = $null
243
- StartDate = $null
244
- EndDate = $null
245
- WhenCreated = $null
241
+ FilePath = $null # Will be set shortly
242
+ DaysToLookBack = $null
243
+ StartDate = $null
244
+ EndDate = $null
245
+ WhenCreated = $null
246
246
EnableGeoIPLocation = $null
247
- TenantName = $null
247
+ TenantName = $null
248
+ GeoIPNonInteractive = $false
248
249
}
249
250
250
251
# Set up the file path first, before any other operations
565
566
566
567
if ($PSBoundParameters.ContainsKey (' EnableGeoIPLocation' )) {
567
568
$Hawk.EnableGeoIPLocation = $EnableGeoIPLocation
569
+ $Hawk.GeoIPNonInteractive = $true
568
570
}
569
571
570
572
You can’t perform that action at this time.
0 commit comments