|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
import json |
|
|
|
import json |
|
|
|
import os |
|
|
|
import os |
|
|
|
|
|
|
|
import shutil |
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
import time |
|
|
|
import time |
|
|
|
|
|
|
|
|
|
|
@ -21,6 +22,9 @@ class LPA: |
|
|
|
|
|
|
|
|
|
|
|
self.timeout_sec = 45 |
|
|
|
self.timeout_sec = 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if shutil.which('lpac') is None: |
|
|
|
|
|
|
|
raise LPAError('lpac not found, must be installed!') |
|
|
|
|
|
|
|
|
|
|
|
def list_profiles(self) -> list[dict[str, str]]: |
|
|
|
def list_profiles(self) -> list[dict[str, str]]: |
|
|
|
msgs = self._invoke('profile', 'list') |
|
|
|
msgs = self._invoke('profile', 'list') |
|
|
|
self._validate_successful(msgs) |
|
|
|
self._validate_successful(msgs) |
|
|
|