'add key, value pair to env array'

def add_env_value(self, key, value):

    rval = False
    env = self.get_env_vars()
    if env:
        env.append({'name': key, 'value': value})
        rval = True
    else:
        result = self.put(DeploymentConfig.env_path, {'name': key, 'value': value})
        rval = result[0]
    return rval
