def verify_profile_name(msg, cfg):
if msg.profile not in cfg.data:<EOL><INDENT>raise UnknownProfileError(msg.profile)<EOL><DEDENT>
Verifies the profile name exists in the config.json file.

Args:
    :msg: (Message class) an instance of a message class.
    :cfg: (jsonconfig.Config) config instance.