Skip to content

Commit

Permalink
fips enabled coe cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mposluszny-splunk committed Feb 27, 2024
1 parent ce0a1b7 commit 95bd9d9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions winrm_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from bs4 import UnicodeDammit
from phantom.action_result import ActionResult
from phantom.base_connector import BaseConnector
from phantom_common.install_info import is_fips_enabled

# Local imports
import parse_callbacks as pc
Expand Down Expand Up @@ -188,13 +189,8 @@ def _sanitize_string(self, string):
return string.replace('`', '``').replace('"', '`"').replace('$', '`$').replace('&', '`&').replace(')', '`)').replace('(', '`(')

def _get_fips_enabled(self):
try:
from phantom_common.install_info import is_fips_enabled
except ImportError:
return False

fips_enabled = is_fips_enabled()
self.debug_print(f'FIPS enabled: {fips_enabled}')
self.debug_print(f'FIPS is enabled: {fips_enabled}')
return fips_enabled

def _create_ps_script(self, action_result, args, whitelist_args=set(), cmd_prefix="", cmd_suffix=""):
Expand Down

0 comments on commit 95bd9d9

Please sign in to comment.