Skip to content

Commit

Permalink
DB version comparison in OracleDatabase() now
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhardy committed Sep 1, 2019
1 parent 7b834b5 commit 5b93fc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OracleDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,13 @@ def remoteSystemIsLinux(self):
if "linux" in self.remoteOS.lower() or 'solaris' in self.remoteOS.lower() : return True
else : return False

def isDBVersion(self, version=None):
'''
Return True if remote database version is version given in parameter
'''
if version in self.oracleDatabaseversion : return True
else: return False

def hasThisRole(self, role, user=None):
'''
Returns True if user has role. Otherwise returns False
Expand Down

0 comments on commit 5b93fc0

Please sign in to comment.