mirror of https://git.48k.eu/ogclient
live: fix ogChangeRepo invocation
Add missing samba credentials parameter in ogChangeRepo invocation. Credentials are loaded from ogClient config file. Any production deployment should use its own samba user and password. ogChangeRepo fails when using default samba credentials in a production environment. Fixes:more_eventsa1edbe904b
("legacy: rewrite ogChangeRepo") Fixes:3703fd6063
("live: support native unicast cache image restore")
parent
c0e14e0c95
commit
2172f00cde
|
@ -138,7 +138,7 @@ class OgLiveOperations:
|
|||
raise ValueError(f'Error: Cannot copy image {image_name} to cache')
|
||||
|
||||
def _restore_image_unicast(self, repo, name, devpath, cache=False):
|
||||
if ogChangeRepo(repo).returncode != 0:
|
||||
if ogChangeRepo(repo, smb_user=self._smb_user, smb_pass=self._smb_pass).returncode != 0:
|
||||
self._restartBrowser(self._url)
|
||||
logging.error('ogChangeRepo could not change repository to %s', repo)
|
||||
raise ValueError(f'Error: Cannot change repository to {repo}')
|
||||
|
|
Loading…
Reference in New Issue