Re: [Cloud-init-dev] [Merge] ~daniel-thewatkins/cloud-init/+git/cloud-init:useradd into cloud-init:master

2019-08-12 Thread Dan Watkins
On Mon, Aug 12, 2019 at 02:31:18PM -, Ryan Harper wrote: > The method is call add_user and the variables match the method. If the variable matched the method, I'd expect it to be add_user_cmd. I'd be fine with that, if that's what you would prefer? > So now we have > > def add_user() >

Re: [Cloud-init-dev] [Merge] ~daniel-thewatkins/cloud-init/+git/cloud-init:useradd into cloud-init:master

2019-08-12 Thread Ryan Harper
The method is call add_user and the variables match the method. So now we have def add_user() useradd_cmd = Isn't this the same confusion? The command to add a user could be something else. In cloudinit/distros/freebsd.py for example, the adduser_cmd , is 'pw useradd'. --