Skip to content

Commit

Permalink
lint isssues in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
shivashankar-vaddepally committed Jan 22, 2025
1 parent a67c419 commit 16ecc67
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
14 changes: 8 additions & 6 deletions plugins/modules/aaapreauthenticationpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@
netscaler.adc.aaapreauthenticationpolicy:
state: present
name: pol-preauth-MDMCheck-WIN10
rule: 'CLIENT.OS(win10) EXISTS && CLIENT.SYSTEM(''REG-NON-NUM_PATH_==_HKEY\\\\_LOCAL\\\\_MACHINE\\\\\\\\SYSTEM\\\\\\\\CurrentControlSet\\\\\\\\Control\\\\\\\\CloudDomainJoin\\\\\\\\TenantInfo\\\\\\\\07751f8b-9617-49d5-9024-85f034f400ec\\\\\\\\DisplayName_VALUE_==_De\\
Lage\\ Landen\\ International\\ B.V.[COMMENT: Check for Company DLL device]'')
EXISTS && CLIENT.SYSTEM(''REG-NON-NUM_PATH_==_HKEY\\\\_LOCAL\\\\_MACHINE\\\\\\\\SYSTEM\\\\\\\\CurrentControlSet\\\\\\\\Control\\\\\\\\Session\\
Manager\\\\\\\\Environment\\\\\\\\PROCESSOR\\\\_ARCHITECTURE_VALUE_==_AMD64[COMMENT:
64-bit OS]'') EXISTS && CLIENT.REG(''HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\SystemCertificates\\\\CA\\\\Certificates\\\\25B23CDF26CFCD9728F70E5DA81EDE47B5434947'')
EXISTS'
rule: 'CLIENT.OS(win10) EXISTS && CLIENT.SYSTEM(''REG-NON-NUM_PATH_==_HKEY\\\\_LOCAL\\\\_MACHINE\\\\\\\\SYSTEM
\\\\\\\\CurrentControlSet\\\\\\\\Control\\\\\\\\CloudDomainJoin\\\\\\\\TenantInfo\\\\\\\\
07751f8b-9617-49d5-9024-85f034f400ec\\\\\\\\DisplayName_VALUE_==_De\\Lage\\ Landen\\ International\\
B.V.[COMMENT: Check for Company DLL device]'')EXISTS && CLIENT.SYSTEM(''REG-NON-NUM_PATH_==_HKEY\\\\
_LOCAL\\\\_MACHINE\\\\\\\\SYSTEM\\\\\\\\CurrentControlSet\\\\\\\\Control\\\\\\\\Session\\Manager
\\\\\\\\Environment\\\\\\\\PROCESSOR\\\\_ARCHITECTURE_VALUE_==_AMD64[COMMENT:64-bit OS]'') EXISTS
&& CLIENT.REG(''HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\SystemCertificates\\\\CA\\\\Certificates\\\\
25B23CDF26CFCD9728F70E5DA81EDE47B5434947'') EXISTS'
reqaction: prof-preauth-MDMCheck-WIN10
"""

Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/authenticationepaaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
netscaler.adc.authenticationepaaction:
state: present
name: EPA-client-scan
csecexpr: 'sys.client_expr("app_0_MAC-ANTIVIR_100090_100310_AUTHENTIC_==_TRUE_RTP_==_TRUE_VIRDEF-FILE-TIME_<_129600[COMMENT:
Microsoft Defender ATP for Endpoints for MacOS, Realtime Enabled and signatures<90days]")'
csecexpr: 'sys.client_expr("app_0_MAC-ANTIVIR_100090_100310_AUTHENTIC_==_TRUE_RTP_==_TRUE_VIRDEF-FILE-TIME_
<_129600[COMMENT: Microsoft Defender ATP for Endpoints for MacOS, Realtime Enabled and signatures<90days]")'
"""

RETURN = r"""
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/systemcmdpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
state: present
policyname: Backup-Operator
action: ALLOW
cmdspec: (^sftp.*)|(^scp.*)|(^(create|rm)\s+system\s+backup)|(^(create|rm)\s+system\s+backup\s+.*)|(^(save|show)\s+ns\s+config)|(^(save|show)\s+ns\s+config\s+.*)
cmdspec: (^sftp.*)|(^scp.*)|(^(create|rm)\s+system\s+backup)|(^(create|rm)\s+system\s+backup\s+.*)|
(^(save|show)\s+ns\s+config)|(^(save|show)\s+ns\s+config\s+.*)
"""

RETURN = r"""
Expand Down

0 comments on commit 16ecc67

Please sign in to comment.