def create_or_update_storage_password(self, props, logger):
    '\n        unencrypted password in inputs.conf, encrypt it and store as storagePassword\n    '
    try:
        locale = 'reference'
        storage_passwords = self.service.storage_passwords
        if (props['username'] in storage_passwords):
            locale = 'delete'
            storage_passwords.delete(props['username'])
    except Exception as e:
        logger('ERROR', 'Error at locale {1} in create_or_update_storage_password: {0}'.format(e, locale))
    try:
        locale = 'create'
        self.service.storage_passwords.create(props['password'], props['username'])
    except Exception as e:
        logger('ERROR', 'Error at locale {1} in create_or_update_storage_password: {0}'.format(e, locale))
unencrypted password in inputs.conf, encrypt it and store as storagePassword
def create_or_update_storage_password(self, props, logger):
    '\n        \n    '
    try:
        locale = 'reference'
        storage_passwords = self.service.storage_passwords
        if (props['username'] in storage_passwords):
            locale = 'delete'
            storage_passwords.delete(props['username'])
    except Exception as e:
        logger('ERROR', 'Error at locale {1} in create_or_update_storage_password: {0}'.format(e, locale))
    try:
        locale = 'create'
        self.service.storage_passwords.create(props['password'], props['username'])
    except Exception as e:
        logger('ERROR', 'Error at locale {1} in create_or_update_storage_password: {0}'.format(e, locale))