Displaying 3 results from an estimated 3 matches for "clustersservice".
Did you mean:
clusters_service
2019 Apr 15
1
[PATCH] v2v: -o rhv-upload: check whether the cluster exists
...67..cc4224ccd 100644
--- a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py
+++ b/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py
@@ -39,6 +39,9 @@ class Connection(object):
return SystemService()
class SystemService(object):
+ def clusters_service(self):
+ return ClustersService()
+
def data_centers_service(self):
return DataCentersService()
@@ -54,6 +57,10 @@ class SystemService(object):
def vms_service(self):
return VmsService()
+class ClustersService(object):
+ def list(self, search=None, case_sensitive=False):
+ return ["D...
2019 Sep 19
2
[PATCH] v2v: -o rhv-upload: adapt phony ovirtsdk4 module to recent changes
...elf, objs):
+ return objs
+
def system_service(self):
return SystemService()
@@ -60,26 +64,31 @@ class SystemService(object):
def vms_service(self):
return VmsService()
+class ClusterService(object):
+ def get(self):
+ return types.Cluster()
+
class ClustersService(object):
- def list(self, search=None, case_sensitive=False):
- return ["Default"]
+ def cluster_service(self, id):
+ return ClusterService()
class DataCentersService(object):
def list(self, search=None, case_sensitive=False):
- return []
+ return...
2020 Jan 10
7
[v2v PATCH 0/6] Various Python pycodestyle fixes
Fixes the majority of the pycodestyle issues in the Python scripts, and
fix the existing test-v2v-python-syntax.sh to use pycodestyle to
actually perform style checks.
Pino Toscano (6):
PEP 8: adapt whitespaces in lines
PEP 8: move imports at the top
PEP 8: adapt empty lines
tests: find all the Python scripts for syntax checks
-o rhv-upload: remove unused Python imports
Revamp check