"""
Write <rec['keys']> to my authorized_keys file.
"""
- logger.verbose('account: configuring %s' % self.name)
new_keys = rec['keys']
+ logger.verbose('account: configuring {} with {} keys'.format(self.name, len(new_keys)))
if new_keys != self.keys:
# get the unix account info
gid = grp.getgrnam("slices")[2]
def get_cgroup_path(name, subsystem="cpuset"):
""" Returns the base path for the cgroup with a specific name or None."""
result = reduce(lambda a, b: b if os.path.basename(b) == name else a,
- get_cgroup_paths(subsystem), None)
+ get_cgroup_paths(subsystem), None)
if result is None:
name = name + ".libvirt-lxc"