def addConfig(self, args):
        app_name, deployment_name = self.parse_app_deployment_name(args.name)
        if not deployment_name:
            deployment_name = 'default'
        if not args.variables:
            raise InputErrorException('NoVariablesGiven')

        args_variables, force = extract_flag_from_variables(args.variables,
                                                            ('-f', '--force'),
                                                            args.force_add)

        variables = parse_config_variables(args_variables, 'add')

        try:
            self.api.update_addon(
                app_name,
                deployment_name,
                CONFIG_ADDON,
                CONFIG_ADDON,
                settings=variables,
                force=force)
        except GoneError:
            # Add addon if it didn't exist.
            self.api.create_addon(app_name, deployment_name, CONFIG_ADDON, variables)
        except ThrottledError as te:
            # Overwrite the variable if didn't force, but type Yes
            question = raw_input('{0} Do you really want to overwrite it? '
                                 'Type "Yes" without the quotes to proceed: '.format(te.message))
            if question.lower() == 'yes':
                self.api.update_addon(
                    app_name,
                    deployment_name,
                    CONFIG_ADDON,
                    CONFIG_ADDON,
                    settings=variables,
                    force=True)

        return True
Adds the given variable and value to the config addon.
dataset/ETHPy150Open cloudControl/cctrl/cctrl/app.py/AppController.addConfig