mirror of https://github.com/jumpserver/jumpserver
parent
7d93c9ebc5
commit
f20c803356
|
@ -62,6 +62,9 @@ class HostTypes(BaseType):
|
||||||
'ansible_connection': 'ssh',
|
'ansible_connection': 'ssh',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
cls.OTHER_HOST: {
|
||||||
|
'ansible_enabled': False
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -103,8 +106,7 @@ class HostTypes(BaseType):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
cls.OTHER_HOST: []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
@ -47,6 +47,5 @@ def on_org_role_permission_changed(sender, instance, action, **kwargs):
|
||||||
|
|
||||||
@receiver([post_save, post_delete], sender=OrgRoleBinding)
|
@receiver([post_save, post_delete], sender=OrgRoleBinding)
|
||||||
def on_org_role_binding_update(sender, instance, **kwargs):
|
def on_org_role_binding_update(sender, instance, **kwargs):
|
||||||
print('>>>>>>>>>>>')
|
|
||||||
from users.models import User
|
from users.models import User
|
||||||
User.expire_users_rbac_perms_cache()
|
User.expire_users_rbac_perms_cache()
|
||||||
|
|
Loading…
Reference in New Issue