mirror of https://git.48k.eu/ogclient
src: update functions for every ogClient mode
Add missing ogClient mode functions and show an error in every unimplemented function.master
parent
d7658f03ab
commit
525958ae85
|
@ -44,7 +44,10 @@ class OgLinuxOperations:
|
|||
def session(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def hardware(self, path, ogRest):
|
||||
def software(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def hardware(self, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def setup(self, request, ogRest):
|
||||
|
@ -53,7 +56,7 @@ class OgLinuxOperations:
|
|||
def image_restore(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def image_create(self, path, request, ogRest):
|
||||
def image_create(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def cache_delete(self, request, ogRest):
|
||||
|
|
|
@ -253,6 +253,9 @@ class OgVirtualOperations:
|
|||
qemu = OgVM(part_path)
|
||||
qemu.run_vm()
|
||||
|
||||
def software(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def partitions_cfg_to_json(self, data):
|
||||
for part in data['partition_setup']:
|
||||
part.pop('virt-drive')
|
||||
|
@ -469,6 +472,9 @@ class OgVirtualOperations:
|
|||
|
||||
return json_dict
|
||||
|
||||
def image_create(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def cache_delete(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
|
|
|
@ -99,7 +99,10 @@ class OgWindowsOperations:
|
|||
def session(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def hardware(self, path, ogRest):
|
||||
def software(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def hardware(self, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def setup(self, request, ogRest):
|
||||
|
@ -108,7 +111,7 @@ class OgWindowsOperations:
|
|||
def image_restore(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def image_create(self, path, request, ogRest):
|
||||
def image_create(self, request, ogRest):
|
||||
raise OgError('Function not implemented')
|
||||
|
||||
def cache_delete(self, request, ogRest):
|
||||
|
|
Loading…
Reference in New Issue