File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -123,15 +123,15 @@ def scan_policy_file(
123
123
)
124
124
125
125
if not high_priority_only :
126
-
127
- # Infrastructure Modification
128
- results_exist += 1
129
- print (
130
- f"{ RED } Potential Issue found: Policy is capable of Unrestricted Infrastructure Modification{ END } "
131
- )
132
- print (
133
- f"{ BOLD } Actions{ END } : { ', ' .join (results .get ('InfrastructureModification' , []))} "
134
- )
126
+ if results . get ( "InfrastructureModification" ):
127
+ # Infrastructure Modification
128
+ results_exist += 1
129
+ print (
130
+ f"{ RED } Potential Issue found: Policy is capable of Unrestricted Infrastructure Modification{ END } "
131
+ )
132
+ print (
133
+ f"{ BOLD } Actions{ END } : { ', ' .join (results .get ('InfrastructureModification' , []))} "
134
+ )
135
135
136
136
if results_exist == 0 :
137
137
print ("There were no results found." )
You can’t perform that action at this time.
0 commit comments