cc_update_etc_hosts: Use the distribution-defined path for the hosts file#983
cc_update_etc_hosts: Use the distribution-defined path for the hosts file#983TheRealFalcon merged 1 commit intocanonical:mainfrom
Conversation
|
@citrus-it , thanks for the pull request! I noticed you added yourself to the CLA signers file, but have you signed the actual CLA too? I'm not seeing your information there. If you did, can you provide the date that you signed it? Other than that, what you have looks good. Can you also update the docstring in the module you changed? The docstring goes directly into our docs, so I think it would be good to replace references to /etc/hosts. Obviously we can't do this with the filename or module name, but I think we can update everything else there. |
I signed it on the 17th of August. I'll make the docstring changes you suggest. |
860d680 to
ae316aa
Compare
|
Thanks for the updates. It looks good to me now.
Unfortunately, I still have no record of the CLA. Do you mind trying again? |
I just signed it again. |
TheRealFalcon
left a comment
There was a problem hiding this comment.
Thanks, I see it now.
The branch needs a rebase before we'll be able to merge.
…file The distribution class has a field that specifies the location of the system hosts file and this can be overridden in subclasses. While the field is correctly used in distro.update_etc_hosts(), the update_etc_hosts module does not use it and just assumes '/etc/hosts' This fixes the module to use the distribution-specific variable.
done |
|
Thanks! |
Proposed Commit Message
Additional Context
There are still places in the code where the path is assumed to be
/etc/hostsbut thisfixes the update_etc_hosts module.
Test Steps
I've been using this patch as part of my work to bring in support for the illumos family of operating systems, where the canonical hosts file is
/etc/inet/hostsChecklist: