When running a command such as:
salt 'trgt-minion-id' cmd.run '/abslute path to/esxcli'
We get the following error:
Runtime error: invalid file: None
salt-master 3006.8
salt-minion 3006.8
Aria Config - all versions
Explicitly run the command as the root user by adding the "runas" option to the command. See example below.
salt 'tgt-minion-id' cmd.run '/abslute/path/to/esxcli' runas=root