From 9b16e3f28242803b984dc13a1cb387fee10562e3 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Wed, 13 May 2015 08:46:10 +0100 Subject: [PATCH] linux device: removing (keyfile or password) validation check It may be possible to connect to a device without either, so it should not be invalid to not specifiy either in the device config. --- wlauto/common/linux/device.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index 8dc49c4a..02836fc0 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -860,8 +860,6 @@ class LinuxDevice(BaseLinuxDevice): self._is_rooted = None def validate(self): - if self.password is None and not self.keyfile: - raise ConfigError('Either a password or a keyfile must be provided.') if self.working_directory is None: # pylint: disable=access-member-before-definition if self.username == 'root': self.working_directory = '/root/wa' # pylint: disable=attribute-defined-outside-init