--Apple-Mail=_15826E03-0940-49D7-93DC-F73784C38CD6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Le 10 ao=C3=BBt 2017 =C3=A0 10:52, Ondra Machacek =
<omachace(a)redhat.com> a =C3=A9crit :
=20
=20
Creates a new host. The host is created based on the attributes of
the =
host parameter. The name, address and root_password properties are =
required.
=20
But what to do if I don't have a root password to give ?
=20
It's just true/false, you can't specify which key to use, it's using =
the default one:
=20
types.Host(
ssh=3Dtypes.Ssh(
authentication_method=3Dtypes.SshAuthenticationMethod.PUBLICKEY,
),
...
)
=20
I tried, it works.
But it's strange, because then, root_password which is mandatory, can be =
filled with None. So why it should be mandatory ?
--Apple-Mail=_15826E03-0940-49D7-93DC-F73784C38CD6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote
type=3D"cite" class=3D""><div =
class=3D"">Le 10 ao=C3=BBt 2017 =C3=A0 10:52, Ondra Machacek <<a =
href=3D"mailto:omachace@redhat.com"
class=3D"">omachace(a)redhat.com</a>&gt;=
a =C3=A9crit :</div><br class=3D"Apple-interchange-newline"><div
=
class=3D""><div dir=3D"ltr" class=3D""><br
class=3D""><div =
class=3D"gmail_extra"><div
class=3D"gmail_quote"><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid =
rgb(204,204,204);padding-left:1ex"></blockquote></div></div></div></div></=
blockquote><br class=3D""><blockquote type=3D"cite"
class=3D""><div =
class=3D""><div dir=3D"ltr" class=3D""><div
class=3D"gmail_extra"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap: =
break-word;" class=3D"">Creates a new host. The host is created based on
=
the attributes of the host parameter. =
The name, address and root_<wbr =
class=3D"">password properties are required.<br
class=3D""><br =
class=3D"">But what to do if I don't have a root password to give ?<br
=
class=3D""></div></blockquote><div
class=3D""><br class=3D""><div =
class=3D"">It's just true/false, you can't specify which key to use,
=
it's using the default one:<br class=3D""><br
class=3D"">types.Host(<br =
class=3D""><span class=3D"gmail-pl-v">
ssh</span><span =
class=3D"gmail-pl-k">=3D</span>types.Ssh(
=20
=20
<table class=3D"gmail-tab-size gmail-highlight =
gmail-js-file-line-container"><tbody class=3D""><tr
class=3D""><td =
id=3D"gmail-LC215" class=3D"gmail-js-file-line gmail-blob-code =
gmail-blob-code-inner"> <span =
class=3D"gmail-pl-v">authentication_method</span><span =
class=3D"gmail-pl-k">=3D</span>types.SshAuthenticationMethod.<span
=
class=3D"gmail-pl-c1">PUBLICKEY</span>,</td>
</tr>
<tr class=3D"">
</tr></tbody></table> ),<br
class=3D""> ...<br =
class=3D"">)<br class=3D""></div><br =
class=3D""></div></div></div></div></div></blockquote><br
=
class=3D""></div><div>I tried, it
works.</div><div><br =
class=3D""></div><div>But it's strange, because then,
root_<wbr =
class=3D"">password which is mandatory, can be filled with None. So why =
it should be mandatory ?</div><br
class=3D""></body></html>=
--Apple-Mail=_15826E03-0940-49D7-93DC-F73784C38CD6--