Project

General

Profile

action #51230

Updated by szarate almost 2 years ago

## Motivation 

 In the code there are divergences about using the **systemctl** function defined in utils and the usage of `script_run('systemctl...')`. 
 This ticket is about unifying this code logic to always use the test function **systemctl** instead of `script_run`. 


 ## Acceptance criteria 

 - **AC1:** There is no module executing `script_run('systemctl ...')` 
 - **AC2:** All usages of `script_run('systemctl ...')` are replaced to `systemctl('...')` 
 - **AC3:** An RFC with an automated check is added to avoid introducing again, mixed syntax (see #96675 and it's acceptance criteria) 


 ## Further information 

 ```perl 
 reg_exp_before = /^\s*\w*script_run[( ]['"]systemctl.*$/ 
 reg_exp_after = /^\s*systemctl[( ]['"].*$/ 
 ```

Back