@registry.register(flag=FLAGS.BASE)<EOL>def _get_base(role, **conn):
base_fields = frozenset(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL>needs_base = False<EOL>for field in base_fields:<EOL><INDENT>if field not in role:<EOL><INDENT>needs_base = True<EOL>break<EOL><DEDENT><DEDENT>if needs_base:<EOL><INDENT>role_name = _get_name_from_structure(role, '<STR_LIT>')<EOL>role = CloudAux.go('<STR_LIT>', RoleName=role_name, **conn)<EOL>role = role['<STR_LIT>']<EOL><DEDENT>role.update(dict(CreateDate=get_iso_string(role['<STR_LIT>'])))<EOL>role['<STR_LIT>'] = <NUM_LIT:3><EOL>return role<EOL>
Determine whether the boto get_role call needs to be made or if we already have all that data
in the role object.
:param role: dict containing (at the very least) role_name and/or arn.
:param conn: dict containing enough information to make a connection to the desired account.
:return: Camelized dict describing role containing all all base_fields.