def get_by_host_and_binary(cls, context, host, binary): try: db_service = db.service_get_by_host_and_binary( context, host, binary) except exception.HostBinaryNotFound: return return cls._from_db_object(context, cls(), db_service)
def get_by_args(cls, context, host, binary): db_service = db.service_get_by_host_and_binary(context, host, binary) return cls._from_db_object(context, cls(), db_service)