noded: Fix /etc/hosts group ownership
authorBernardo Dal Seno <bdalseno@google.com>
Tue, 13 Dec 2011 15:01:24 +0000 (16:01 +0100)
committerBernardo Dal Seno <bdalseno@google.com>
Thu, 22 Dec 2011 13:12:41 +0000 (14:12 +0100)
commiteea3b5723dc62fa06942cde174e7462b31a78ae1
tree3b2e3db6bbd1f5fb8a64a079b79e1b696f03a0cf
parent0d20cc42ad8fe14e02131541fc10fabdea146d32
noded: Fix /etc/hosts group ownership

When Ganeti was compiled with the option of running as a different
user/group, the group ownership of /etc/hosts was set to gnt-daemons.  Now
permissions for /etc/hosts are preserved (or set correctly).

Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils/nodesetup.py
test/ganeti.utils.nodesetup_unittest.py