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

[ BUG ] Import-FalconConfig: Cannot overwrite variable ... error #256

Closed
bk-cs opened this issue Nov 15, 2022 · 2 comments
Closed

[ BUG ] Import-FalconConfig: Cannot overwrite variable ... error #256

bk-cs opened this issue Nov 15, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@bk-cs
Copy link
Collaborator

bk-cs commented Nov 15, 2022

Describe the bug
When using Import-FalconConfig and trying to update build versions within a Sensor Update policy, Import-FalconConfig shows an Cannot overwrite variable ... because the variable has been optimized error.

Later in the process, additional Cannot validate argument on parameter 'Id'. The argument "" does not match the "^[a-fA-F0-9]{32}$" pattern errors occur, linked to the failed Sensor Update policy creation.

To Reproduce
Use Import-FalconConfig with an archive that contains Sensor Update policies.

Expected behavior
Successful policy creation.

Environment (please complete the following information):

  • OS: macOS Monterey
  • PowerShell: 7.2.6
  • PSFalcon: 2.2.3
@bk-cs bk-cs added the bug Something isn't working label Nov 15, 2022
@bk-cs bk-cs self-assigned this Nov 15, 2022
@bk-cs bk-cs changed the title [ BUG ] Import-FalconConfig: Cannot overwrite variable ... because the variable has been optimized error [ BUG ] Import-FalconConfig: Cannot overwrite variable ... error Nov 15, 2022
bk-cs added a commit that referenced this issue Nov 15, 2022
…. Added filter to ensure that LinuxArm64

builds were only being checked when they were using tagged versions.
@bk-cs
Copy link
Collaborator Author

bk-cs commented Nov 15, 2022

This issue will be resolved in v2.2.4. To fix it before release, replace Public\psf-config.ps1 with the contents of this file: https://raw.githubusercontent.com/CrowdStrike/psfalcon/4de75e2e8f3bb4d6f364cf3ebb255e93bfb84179/Public/psf-config.ps1

@bk-cs bk-cs mentioned this issue Jan 17, 2023
@bk-cs
Copy link
Collaborator Author

bk-cs commented Jan 17, 2023

Solved in v2.2.4 release.

@bk-cs bk-cs closed this as completed Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant