Add new common method get_ci() and push_ci() to Driver class.

This commit is contained in:
uggla 2015-07-08 15:55:02 +02:00
parent 731be163d6
commit bc9cb6eae5
1 changed files with 10 additions and 3 deletions

View File

@ -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