Page MenuHomeDevCentral

Check user isn't used
Closed, ResolvedPublic

Description

There is no user attribute in cmd.run.

Check the repository don't have an attribute user for cmd.run, and if so, replace by runas.

Currently accepted arguments:

salt.states.cmd.run(name, onlyif=None, unless=None, creates=None, cwd=None, runas=None, shell=None, env=None, stateful=False, umask=None, output_loglevel='debug', quiet=False, timeout=None, ignore_timeout=False, use_vt=False, **kwargs)

If a cmd.run entry contains a user:, we should replace by runas (but it will have a require.user to mark a dependency to an user.present state).

Event Timeline

dereckson closed this task as Resolved.EditedNov 7 2017, 01:20
dereckson claimed this task.

Checked with grep -A20 -r cmd.run ., all fine.