diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e1cb53dc..d79518d86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ IMPROVEMENTS: BUG FIXES: - core: Fix cases where sometimes SSH connection would hang. + - command/docker-logs: Won't crash if container is removed. [GH-3990] - providers/docker: Create args works. [GH-4526] - providers/docker: Nicer error if package is called. [GH-4595] - providers/docker: Host IP restriction is forwarded through. [GH-4505] diff --git a/plugins/providers/docker/command/logs.rb b/plugins/providers/docker/command/logs.rb index db119284a..a2abab4b2 100644 --- a/plugins/providers/docker/command/logs.rb +++ b/plugins/providers/docker/command/logs.rb @@ -43,7 +43,7 @@ module VagrantPlugins next end - state = machine.state + state = machine.state.id if state == :host_state_unknown machine.ui.output(I18n.t("docker_provider.logs_host_state_unknown")) next