def LoadSingleClientDeployInfo(client_deploy_info):
 builder = yaml_object.ObjectBuilder(ClientDeployInfoExternal)
 handler = yaml_builder.BuilderHandler(builder)
 listener = yaml_listener.EventListener(handler)
 listener.Parse(client_deploy_info)
 parsed_yaml = handler.GetResults()
 if (not parsed_yaml):
  raise EmptyYaml()
 if (len(parsed_yaml) > 1):
  raise MultipleClientDeployInfo()
 return parsed_yaml[0]

def LoadSingleClientDeployInfo ( client_deploy_info ) : builder = yaml_object . ObjectBuilder ( ClientDeployInfoExternal ) handler = yaml_builder . BuilderHandler ( builder ) listener = yaml_listener . EventListener ( handler ) listener . Parse ( client_deploy_info ) parsed_yaml = handler . GetResults ( ) if ( not parsed_yaml ) : raise EmptyYaml ( ) if ( len ( parsed_yaml ) > 1 ) : raise MultipleClientDeployInfo ( ) return parsed_yaml [ 0 ]
returns a clientdeployinfoexternal from a deploy_info .