fix none attribute error
This commit is contained in:
parent
9d484b00e9
commit
06e21c86ce
@ -203,10 +203,11 @@ class DynamicRightSelectTimer(Timer):
|
|||||||
|
|
||||||
for node_id in to_lock:
|
for node_id in to_lock:
|
||||||
node = session.repository.graph.get(node_id)
|
node = session.repository.graph.get(node_id)
|
||||||
instance_mode = node.data.get('instance_type')
|
if node and hasattr(node,'data'):
|
||||||
if instance_mode and instance_mode == 'COLLECTION':
|
instance_mode = node.data.get('instance_type')
|
||||||
to_lock.remove(node_id)
|
if instance_mode and instance_mode == 'COLLECTION':
|
||||||
instances_to_lock.append(node_id)
|
to_lock.remove(node_id)
|
||||||
|
instances_to_lock.append(node_id)
|
||||||
if instances_to_lock:
|
if instances_to_lock:
|
||||||
try:
|
try:
|
||||||
porcelain.lock(session.repository,
|
porcelain.lock(session.repository,
|
||||||
|
Loading…
Reference in New Issue
Block a user