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:
parent
4e9601d905
commit
9b16e3f282
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user