Issue running esxcli' from salt cmd.run call
search cancel

Issue running esxcli' from salt cmd.run call

book

Article ID: 372185

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware Aria Suite

Issue/Introduction

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

 

Environment

salt-master 3006.8

salt-minion 3006.8

Aria Config - all versions

Resolution

 

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