mirror of https://git.48k.eu/ogclient
Rename 'linux' folder and operations to 'live'
ogLive related operations are named inside a 'Linux' folder, also its
python class is named OgLinuxOperations. Rename every 'linux' occurrence
with live to further clarify this folder and operations.
- OgLinuxOperations -> OgLiveOperations
- src/linux/ -> src/live/
Fixes: 1377acee
('Rename 'linux' mode to 'live' mode')
more_events
parent
900a1c8f08
commit
f0aa3df485
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ setup(name='ogclient',
|
|||
author='Soleta OpenGnsys Support Team',
|
||||
author_email='soporte-og@soleta.eu',
|
||||
url='https://github.com/opengnsys/ogClient',
|
||||
packages=['src', 'src.linux', 'src.virtual'],
|
||||
packages=['src', 'src.live', 'src.virtual'],
|
||||
scripts=['ogclient'],
|
||||
data_files=[('cfg', ['cfg/ogclient.json']),
|
||||
('', ['COPYING'])]
|
||||
|
|
|
@ -13,7 +13,7 @@ from src.ogClient import ogClient
|
|||
|
||||
OG_SHELL = '/bin/bash'
|
||||
|
||||
class OgLinuxOperations:
|
||||
class OgLiveOperations:
|
||||
def __init__(self, config):
|
||||
self._url = config['opengnsys']['url']
|
||||
self._url_log = config['opengnsys']['url_log']
|
|
@ -256,8 +256,8 @@ class ogRest():
|
|||
self.samba_config = self.CONFIG['samba']
|
||||
|
||||
if self.mode == 'live':
|
||||
from src.linux.ogOperations import OgLinuxOperations
|
||||
self.operations = OgLinuxOperations(self.CONFIG)
|
||||
from src.live.ogOperations import OgLiveOperations
|
||||
self.operations = OgLiveOperations(self.CONFIG)
|
||||
elif self.mode == 'virtual':
|
||||
from src.virtual.ogOperations import \
|
||||
OgVirtualOperations
|
||||
|
|
Loading…
Reference in New Issue