diff --git a/nixops/backends/none.py b/nixops/backends/none.py index 3e2536b62..4a0e99645 100644 --- a/nixops/backends/none.py +++ b/nixops/backends/none.py @@ -111,7 +111,7 @@ def get_ssh_private_key_file(self) -> Optional[str]: def get_ssh_flags(self, *args, **kwargs) -> List[str]: super_state_flags = super(NoneState, self).get_ssh_flags(*args, **kwargs) - if self.vm_id and self.cur_toplevel and self._ssh_public_key_deployed: + if self.vm_id and self._ssh_public_key_deployed: key_file = self.get_ssh_private_key_file() flags = super_state_flags + [ "-o",