'Create account on SolidFire device if it doesn\'t already exist.
We\'re first going to check if the account already exists, if it does
just return it.  If not, then create it.'

def _create_sfaccount(self, project_id):

    sf_account_name = self._get_sf_account_name(project_id)
    sfaccount = self._get_sfaccount_by_name(sf_account_name)
    if (sfaccount is None):
        LOG.debug('solidfire    account:    %s    does    not    exist,    create    it...', sf_account_name)
        chap_secret = self._generate_random_string(12)
        params = {'username': sf_account_name, 'initiatorSecret': chap_secret, 'targetSecret': chap_secret, 'attributes': {}}
        self._issue_api_request('AddAccount', params)
        sfaccount = self._get_sfaccount_by_name(sf_account_name)
    return sfaccount
