Core.remote works if I cat the private key works but referring to key by filename does not

vanilla docker install of version 3.3

docker-compose exec st2client bash
Welcome to StackStorm HA v3.3.0 (Ubuntu 18.04.5 LTS GNU/Linux x86_64)

1.Loading the key via a cat of the key file works
It’s munging out the tick but between the quotes that executes the command.

st2 run core.remote hosts=‘REMOTEHOST’ cmd=‘pwd’ private_key="cat /home/stanley/.ssh/stanley_rsa"

2.Loading a key by referring to it by filename does not work.
st2 run core.remote hosts=‘REMOTEHOST’ cmd=‘pwd’ private_key="/home/stanley/.ssh/stanley_rsa"

3.I am able to ssh in as stanley user.

Full output of both commands

Working command:

st2 run core.remote hosts=‘REMOTEHOST’ cmd=‘pwd’ private_key="cat /home/stanley/.ssh/stanley_rsa"
.
id: 5fd51a0e328db243c79ac6e6
action.ref: core.remote
context.user: st2admin
parameters:
cmd: pwd
hosts: REMOTEHOST
private_key: ‘********’
status: succeeded
start_timestamp: Sat, 12 Dec 2020 19:29:18 UTC
end_timestamp: Sat, 12 Dec 2020 19:29:18 UTC
result:
REMOTEHOST:
failed: false
return_code: 0
stderr: ‘’
stdout: /tmp
succeeded: true

Failing command:

st2 run core.remote hosts=‘REMOTEHOST’ cmd=‘pwd’ private_key="/home/stanley/.ssh/stanley_rsa"
.
id: 5fd51b12328db243c79ac6e9
action.ref: core.remote
context.user: st2admin
parameters:
cmd: pwd
hosts: REMOTEHOST
private_key: ‘********’
status: failed
start_timestamp: Sat, 12 Dec 2020 19:33:38 UTC
end_timestamp: Sat, 12 Dec 2020 19:33:39 UTC
result:
error: "Unable to connect to any one of the hosts: [‘REMOTEHOST’].

connect_errors={
“REMOTEHOST”: {
“failed”: true,
“succeeded”: false,
“timeout”: false,
“return_code”: 255,
“stdout”: “”,
“stderr”: “”,
“error”: “Failed connecting to host REMOTEHOST. [Errno 2] No such file or directory: ‘/home/stanley/.ssh/stanley_rsa’”,
“traceback”: “Traceback (most recent call last):
File \”/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/parallel_ssh.py\", line 260, in _connect
client.connect()
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/paramiko_ssh.py\", line 152, in connect
self.client = self._connect(host=self.hostname, socket=self.bastion_socket)
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/paramiko_ssh.py\", line 692, in _connect
passphrase_reqd = self._is_key_file_needs_passphrase(self.key_files)
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/paramiko_ssh.py\", line 773, in _is_key_file_needs_passphrase
cls.from_private_key_file(file, password=None)
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/paramiko/pkey.py\", line 235, in from_private_key_file
key = cls(filename=filename, password=password)
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/paramiko/rsakey.py\", line 55, in init
self._from_private_key_file(filename, password)
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/paramiko/rsakey.py\", line 175, in _from_private_key_file
data = self._read_private_key_file(\“RSA\”, filename, password)
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/paramiko/pkey.py\", line 307, in _read_private_key_file
with open(filename, \“r\”) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/stanley/.ssh/stanley_rsa’
"
}
}"
traceback: " File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2actions/container/base.py”, line 114, in _do_run
runner.pre_run()
File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/paramiko_ssh_runner.py”, line 186, in pre_run
self._parallel_ssh_client = ParallelSSHClient(**client_kwargs)
File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/parallel_ssh.py”, line 76, in init
connect_results = self.connect(raise_on_any_error=raise_on_any_error)
File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/parallel_ssh.py”, line 106, in connect
raise NoHostsConnectedToException(msg)