@fiss_cmd<EOL>def attr_set(args):
if args.entity_type and args.entity:<EOL><INDENT>prompt = "<STR_LIT>".format(<EOL>args.attribute, args.value, args.entity_type,<EOL>args.entity, args.project, args.workspace)<EOL>if not (args.yes or _confirm_prompt("<STR_LIT>", prompt)):<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>update = fapi._attr_set(args.attribute, args.value)<EOL>r = fapi.update_entity(args.project, args.workspace, args.entity_type,<EOL>args.entity, [update])<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL><DEDENT>else:<EOL><INDENT>prompt = "<STR_LIT>".format(<EOL>args.attribute, args.value, args.project, args.workspace<EOL>)<EOL>if not (args.yes or _confirm_prompt("<STR_LIT>", prompt)):<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>update = fapi._attr_set(args.attribute, args.value)<EOL>r = fapi.update_workspace_attributes(args.project, args.workspace,<EOL>[update])<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Set key=value attributes: if entity name & type are specified then
    attributes will be set upon that entity, otherwise the attribute will
    be set at the workspace level