mirror of https://github.com/jumpserver/jumpserver
parent
26de26d7b0
commit
da915249ab
|
@ -91,9 +91,7 @@ class PlatformSerializer(WritableNestedModelSerializer):
|
||||||
automation = PlatformAutomationSerializer(label=_("Automation"), required=False)
|
automation = PlatformAutomationSerializer(label=_("Automation"), required=False)
|
||||||
su_method = LabeledChoiceField(
|
su_method = LabeledChoiceField(
|
||||||
choices=[("sudo", "sudo su -"), ("su", "su - ")],
|
choices=[("sudo", "sudo su -"), ("su", "su - ")],
|
||||||
label="切换方式",
|
label="切换方式", required=False, default="sudo", allow_null=True
|
||||||
required=False,
|
|
||||||
default="sudo",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue