perf: ansible_enabled false (#9548)

Co-authored-by: feng <1304903146@qq.com>
pull/9549/head^2
fit2bot 2 years ago committed by GitHub
parent 7d93c9ebc5
commit f20c803356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,6 +62,9 @@ class HostTypes(BaseType):
'ansible_connection': 'ssh',
},
},
cls.OTHER_HOST: {
'ansible_enabled': False
},
}
@classmethod
@ -103,8 +106,7 @@ class HostTypes(BaseType):
}
}
}
],
cls.OTHER_HOST: []
]
}
@classmethod

@ -47,6 +47,5 @@ def on_org_role_permission_changed(sender, instance, action, **kwargs):
@receiver([post_save, post_delete], sender=OrgRoleBinding)
def on_org_role_binding_update(sender, instance, **kwargs):
print('>>>>>>>>>>>')
from users.models import User
User.expire_users_rbac_perms_cache()

Loading…
Cancel
Save