<#5581 [BUG] RemoteEntities doesn't work properly ...
# flyte-github
c
#5581 [BUG] RemoteEntities doesn't work properly using >> Issue created by andresgomezfrr ### Describe the bug I'm getting this error:
Copy code
'Output' object has no attribute 'ref'
The internal code where this is thrown is:
Copy code
flytekit/core/promise.py:850 in __rshift__                       
│                                                                              │
│    847 │   │   return self._ref                                              │
│    848 │                                                                     │
│    849 │   def __rshift__(self, other: Union[Promise, VoidPromise]):         │
│ ❱  850 │   │   if self.ref and other.ref:                                    │
│    851 │   │   │   self.ref.node.runs_before(other.ref.node)                 │
│    852 │   │   return other
I think the issue is that this class Output: https://github.com/flyteorg/flytekit/blob/master/flytekit/core/promise.py#L697-L716 doesnt have implemented the ref, so when you try to use the
>>
operator using remoteEntity which are wrapped in the Output class you will hit this error. If I check the type of my remoteEntity it is
<class 'flytekit.core.promise.create_task_output.<locals>.Output'>
Copy code
a >> remoteEntity(this is an Output class) > b
This is a workaround:
Copy code
a >> remoteEntity.<some_field>.node > b
This is related to: #5393 ### Expected behavior Be able to chaining remoteEntities ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte