def setup_robot_app_name()

in ws_setup.py [0:0]


    def setup_robot_app_name(self):
        try:
            id = boto3.client('sts').get_caller_identity()
            arn = id["Arn"]
            i = arn.rfind('/')
            if i > 0:
                name = re.sub(r'[^a-zA-Z0-9_\-]', "-", arn[i+1:])
                result = "{}robot_{}".format(APPNAME_BASE, name)
                if len(result) > 255:
                    result = result[:255]
            else:
                result = "{}robot".format(APPNAME_BASE)
        except Exception as e:
            errlog("Exception : %s" % str(e))
            return None

        return result