Everything validates now
This commit is contained in:
parent
674b11a72a
commit
dcd1ea23d8
@ -17,10 +17,10 @@ input:
|
|||||||
schema: str!
|
schema: str!
|
||||||
value: solard
|
value: solard
|
||||||
location_id:
|
location_id:
|
||||||
schema: str!
|
schema: str
|
||||||
value:
|
value:
|
||||||
reverse: True
|
reverse: True
|
||||||
is_own: False
|
is_own: False
|
||||||
transports_id:
|
transports_id:
|
||||||
schema: str!
|
schema: str
|
||||||
value: False
|
is_emit: False
|
||||||
|
@ -13,10 +13,11 @@ input:
|
|||||||
schema: str!
|
schema: str!
|
||||||
value: ssh
|
value: ssh
|
||||||
location_id:
|
location_id:
|
||||||
schema: str!
|
schema: str
|
||||||
value:
|
value:
|
||||||
reverse: True
|
reverse: True
|
||||||
is_own: False
|
is_own: False
|
||||||
transports_id:
|
transports_id:
|
||||||
schema: str!
|
schema: str
|
||||||
value: False
|
value:
|
||||||
|
is_emit: False
|
||||||
|
@ -8,6 +8,6 @@ input:
|
|||||||
value: $uuid
|
value: $uuid
|
||||||
reverse: True
|
reverse: True
|
||||||
location_id:
|
location_id:
|
||||||
schema: str!
|
schema: str
|
||||||
value:
|
value:
|
||||||
reverse: True
|
reverse: True
|
||||||
|
@ -87,10 +87,16 @@ def location_and_transports(emitter, receiver, orig_mapping):
|
|||||||
emitter.name,
|
emitter.name,
|
||||||
single)
|
single)
|
||||||
return
|
return
|
||||||
if emitter_single.get('value') is False:
|
if emitter_single.get('is_emit') is False:
|
||||||
|
# this case is when we connect resource to transport itself
|
||||||
|
# like adding ssh_transport for solard_transport and we don't want then
|
||||||
|
# transports_id to be messed
|
||||||
|
# it forbids passing this value around
|
||||||
log.debug("Disabled %r mapping for %r", single, emitter.name)
|
log.debug("Disabled %r mapping for %r", single, emitter.name)
|
||||||
return
|
return
|
||||||
if receiver_single.get('is_own') is False:
|
if receiver_single.get('is_own') is False:
|
||||||
|
# this case is when we connect resource which has location_id but that is
|
||||||
|
# from another resource
|
||||||
log.debug("Not is_own %r for %r ", single, emitter.name)
|
log.debug("Not is_own %r for %r ", single, emitter.name)
|
||||||
return
|
return
|
||||||
# connect in other direction
|
# connect in other direction
|
||||||
|
Loading…
Reference in New Issue
Block a user