Add new common method get_ci() and push_ci() to Driver class.
This commit is contained in:
parent
731be163d6
commit
bc9cb6eae5
|
@ -8,19 +8,26 @@ class Driver(object):
|
|||
self.driver_type = self.__class__.__name__
|
||||
# Get credentials from conf files for CMDB
|
||||
pass
|
||||
|
||||
def get_ci(self):
|
||||
pass
|
||||
|
||||
def push_ci(self):
|
||||
pass
|
||||
|
||||
|
||||
class Itop(Driver):
|
||||
|
||||
def get(self):
|
||||
def get_ci(self):
|
||||
print "Get from itop"
|
||||
return True
|
||||
|
||||
def push(self):
|
||||
def push_ci(self):
|
||||
pass
|
||||
|
||||
class Redfish(Driver):
|
||||
|
||||
def get(self):
|
||||
def get_ci(self):
|
||||
print "Get from redfish"
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue