Expose `sudo_file` parameter

Bug #1704043 reported by Ivan Kurnosov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Undecided
Unassigned

Bug Description

At the moment the

def write_sudo_rules(self, user, rules, sudo_file=None):

function accepts custom `sudo_file` parameter, but it's invoked without passing the third argument:

self.write_sudo_rules(name, kwargs['sudo'])

It would be great if the `kwargs['sudo_file']` was passed there

Revision history for this message
Scott Moser (smoser) wrote :

What is your use case here?
Are you wanting to create a user somehow and provide a different 'sudo_file' ?

Set the bug back to 'Status' of 'New' after you've answered question.

Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Ivan Kurnosov (zerkms) wrote :

After more than a year I don't remember the use case.

I think it could be closed as `wrong` or something then.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init because there has been no activity for 60 days.]

Changed in cloud-init:
status: Incomplete → Expired
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.