def set_root_password_with_task(self): """Return the root password configuration task. :returns: a root password configuration task """ return SetRootPasswordTask(sysroot=conf.target.system_root, password=self.root_password, crypted=self.root_password_is_crypted, locked=self.root_account_locked)
def set_root_password_with_task(self, sysroot): """Return the root password configuration task. :param str sysroot: a path to the root of the installed system :returns: object path of the root password configuration task """ task = SetRootPasswordTask(sysroot=sysroot, password=self.root_password, crypted=self.root_password_is_crypted, locked=self.root_account_locked) return self.publish_task(USERS.namespace, task)
def set_root_password_with_task(self): """Return the root password configuration task. :returns: object path of the root password configuration task """ task = SetRootPasswordTask( sysroot=conf.target.system_root, password=self.root_password, crypted=self.root_password_is_crypted, locked=self.root_account_locked ) return self.publish_task(USERS.namespace, task)