File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -791,19 +791,19 @@ def disable_password_policies():
791791 instance = SNowInstance (), property_name = "glide.apply.password_policy.on_login" , value = "false"
792792 )
793793 # The following is not supported on developer portal instances
794- if not _is_dev_portal_instance ():
795- try :
796- set_sys_property (
794+ try :
795+ set_sys_property (
797796 instance = SNowInstance (),
798797 property_name = "glide.authenticate.api.user.reset_password.mandatory" ,
799798 value = "false" ,
800799 )
801- except Exception as e :
802- logging .warning (
803- "Skipping: failed to set sys property "
804- "'glide.authenticate.api.user.reset_password.mandatory'. Continuing." ,
805- exc_info = True ,
806- )
800+ except Exception :
801+ logging .warning (
802+ "Skipping: failed to set sys property "
803+ "'glide.authenticate.api.user.reset_password.mandatory'. Continuing." ,
804+ exc_info = True ,
805+ )
806+
807807 logging .info ("Password policies disabled." )
808808
809809
You can’t perform that action at this time.
0 commit comments