Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arunpamulapati authored and arunpamulapati committed May 29, 2024
1 parent 0b49704 commit 465fd5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions notebooks/Includes/workspace_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ def restrict_workspace_admin_settings(df):

check_id='107'#GOV-36,Governance,Automatic cluster update
enabled, sbp_rec = getSecurityBestPracticeRecord(check_id, cloud_type)
metastores= {} # hold all the metastores that have no 'access' schema with state ENABLE_COMPLETED
def automatic_cluster_update(df):
if df is not None and not df.rdd.isEmpty():
return (check_id, 0, {'automatic_cluster_update':'Found status as true to automatic cluster update setting'} )
Expand Down Expand Up @@ -1471,9 +1470,9 @@ def compliance_security_profile(df):

def enhanced_security_monitoring(df):
if df is not None and not df.rdd.isEmpty():
return (check_id, 0, {'compliance enhanced security monitoring setting for this workspace':'True'})
return (check_id, 0, {'enhanced security monitoring setting for this workspace':'True'})
else:
return (check_id, 1, {'compliance enhanced security monitoring for this workspace':'False'})
return (check_id, 1, {'enhanced security monitoring for this workspace':'False'})
if enabled:
tbl_name = 'global_temp.enhanced_security_monitoring'+'_' + workspace_id
sql=f'''
Expand Down

0 comments on commit 465fd5c

Please sign in to comment.