
from configparser import RawConfigParser
from litmus.core.util import call


def load_project_list(projects):
    """docstring for load_project_list"""
    configparser = RawConfigParser()
    configparser.read(projects)

    project_list = []
    for section in configparser.sections():
        item = dict(configparser.items(section))
        item['name'] = section
        project_list.append(item)
    return project_list

def sdb_does_exist():
    help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
    try:
        call('sdb version', timeout=10)
    except FileNotFoundError:
        raise Exception('Please install sdb. Refer to {}'.format(help_url))
    return


from configparser import RawConfigParser
from litmus.core.util import call


def load_project_list(projects):
    """docstring for load_project_list"""
    configparser = RawConfigParser()
    configparser.read(projects)

    project_list = []
    for section in configparser.sections():
        item = dict(configparser.items(section))
        item['name'] = section
        project_list.append(item)
    return project_list

def sdb_does_exist():
    help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
    try:
        call('sdb version', shell=True, timeout=10)
    except FileNotFoundError:
        raise Exception('Please install sdb. Refer to {}'.format(help_url))
    return

Add shell=True to make sure that sdb does exist
Add shell=True to make sure that sdb does exist

  
  from configparser import RawConfigParser
  from litmus.core.util import call
  
  
  def load_project_list(projects):
      """docstring for load_project_list"""
      configparser = RawConfigParser()
      configparser.read(projects)
  
      project_list = []
      for section in configparser.sections():
          item = dict(configparser.items(section))
          item['name'] = section
          project_list.append(item)
      return project_list
  
  def sdb_does_exist():
      help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
      try:
-         call('sdb version', timeout=10)
+         call('sdb version', shell=True, timeout=10)
      except FileNotFoundError:
          raise Exception('Please install sdb. Refer to {}'.format(help_url))
      return
  
Add shell=True to make sure that sdb does exist
## Code Before:

from configparser import RawConfigParser
from litmus.core.util import call


def load_project_list(projects):
    """docstring for load_project_list"""
    configparser = RawConfigParser()
    configparser.read(projects)

    project_list = []
    for section in configparser.sections():
        item = dict(configparser.items(section))
        item['name'] = section
        project_list.append(item)
    return project_list

def sdb_does_exist():
    help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
    try:
        call('sdb version', timeout=10)
    except FileNotFoundError:
        raise Exception('Please install sdb. Refer to {}'.format(help_url))
    return

## Instruction:
Add shell=True to make sure that sdb does exist
## Code After:

from configparser import RawConfigParser
from litmus.core.util import call


def load_project_list(projects):
    """docstring for load_project_list"""
    configparser = RawConfigParser()
    configparser.read(projects)

    project_list = []
    for section in configparser.sections():
        item = dict(configparser.items(section))
        item['name'] = section
        project_list.append(item)
    return project_list

def sdb_does_exist():
    help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
    try:
        call('sdb version', shell=True, timeout=10)
    except FileNotFoundError:
        raise Exception('Please install sdb. Refer to {}'.format(help_url))
    return
