from drupdates.utils import *
from drupdates.repos import *

'''
Note: you need an ssh key set up with Stash to make this script work
'''

class repolist(repoTool):

  def __init__(self):
    currentDir = os.path.dirname(os.path.realpath(__file__))
    self.localsettings = Settings(currentDir)

  def gitRepos(self):
    #Get list of Stash repos in the Rain Project.
    repoDict = self.localsettings.get('repoDict')
    if not repoDict:
      return {}
    else:
      return repoDict


from drupdates.utils import *
from drupdates.repos import *

'''
Note: you need an ssh key set up with Stash to make this script work
'''

class repolist(repoTool):

  def __init__(self):
    currentDir = os.path.dirname(os.path.realpath(__file__))
    self.localsettings = Settings(currentDir)

  def gitRepos(self):
    #Get list of Stash repos in the Rain Project.
    repoDict = self.localsettings.get('repoDict')
    if (not repoDict) or (type(repoDict) is not dict):
      return {}
    else:
      return repoDict


Add extra check to repo list to verify a dictionary is returned
Add extra check to repo list to verify a dictionary is returned
