1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

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.
This commit is contained in:
Sergei Trofimov 2015-05-13 08:46:10 +01:00
parent 4e9601d905
commit 9b16e3f282

View File

@ -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