machine: fix typos and clarify supervisord docs

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan
2022-11-18 10:42:44 -05:00
parent 48f3bb2189
commit 362bc1a3d3
2 changed files with 7 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ class Machine:
"none": BaseProvider,
"systemd_cli": SystemdCliProvider,
"systemd_dbus": SystemdDbusProvider,
"supervisord": SuperisordProvider
"supervisord": SupervisordProvider
}
self.provider_type = config.get('provider', 'systemd_dbus')
pclass = providers.get(self.provider_type)
@@ -1175,7 +1175,7 @@ class SystemdDbusProvider(BaseProvider):
# for docker klipper-moonraker image multi-service managing
# since in container, all command is launched by normal user,
# sudo_cmd is not needed.
class SuperisordProvider(BaseProvider):
class SupervisordProvider(BaseProvider):
def __init__(self, config: ConfigHelper) -> None:
super().__init__(config)
self.spv_conf: str = config.get("supervisord_config_path", "")
@@ -1225,7 +1225,7 @@ class SuperisordProvider(BaseProvider):
os.path.exists("/.dockerinit")
):
virt_id = "docker"
virt_type = "docker"
virt_type = "container"
return {
'virt_type': virt_type,
'virt_identifier': virt_id