mirror of https://github.com/jumpserver/jumpserver
xxx
parent
e53aa9696b
commit
cc167f1b49
|
@ -182,8 +182,9 @@ def migrate_to_nodes(apps, *args):
|
|||
category__in=['remote_app', 'database', 'cloud'],
|
||||
org_id=org.id
|
||||
)
|
||||
if not node:
|
||||
continue
|
||||
print("Set node asset: ", node)
|
||||
if node:
|
||||
node.assets_amount = len(assets)
|
||||
node.save()
|
||||
node.assets.set(assets)
|
||||
|
|
Loading…
Reference in New Issue