<div dir="auto">It doesn't work with out tty.<div dir="auto"><br></div><div dir="auto">Ananta<br><br><div data-smartmail="gmail_signature" dir="auto"><br>sent from my phone. Sory fer eny typeos</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2019, 5:24 AM Michael Mraka <<a href="mailto:michael.mraka@redhat.com">michael.mraka@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ananta Chakravartula:<br>
> I got spacewalk setup using chef and I run some spacecmd commands part of<br>
> the recipe ( using execute resource), but chef-client fails with error<br>
> <br>
> ```<br>
> chef-client[32220]:     Spacewalk Password: ERROR:<br>
> chef-client[32220]:     Warning: Password input may be echoed.<br>
> chef-client[32220]:       passwd = fallback_getpass(prompt, stream)<br>
> chef-client[32220]:     /usr/lib64/python2.7/getpass.py:83: GetPassWarning:<br>
> Can not control echo on the terminal.<br>
> chef-client[32220]:     Spacewalk Password: ERROR:```<br>
> ```<br>
> <br>
> I do have ~/.spacecmd/config , but looks like spacecmd is looking for tty.<br>
> It doesn't error when i run chef-client manually.<br>
<br>
Hello Ananta,<br>
<br>
You can specify user/password on command line:<br>
<br>
$ spacecmd --user satuser --password satpwd ...<br>
<br>
> <br>
> <br>
> Cheers,<br>
> Ananta<br>
<br>
Regards,<br>
<br>
--<br>
Michael Mráka<br>
System Management Engineering, Red Hat<br>
<br>
</blockquote></div>