@@ -254,7 +254,7 @@ def update_connections_req(
254254 self ,
255255 element : ET .Element ,
256256 connection_luids : Iterable [str ],
257- authentication_type : str ,
257+ authentication_type : Optional [ str ] = None ,
258258 username : Optional [str ] = None ,
259259 password : Optional [str ] = None ,
260260 embed_password : Optional [bool ] = None ,
@@ -264,7 +264,8 @@ def update_connections_req(
264264 ET .SubElement (conn_luids_elem , "connectionLUID" ).text = luid
265265
266266 connection_elem = ET .SubElement (element , "connection" )
267- connection_elem .set ("authenticationType" , authentication_type )
267+ if authentication_type is not None :
268+ connection_elem .set ("authenticationType" , authentication_type )
268269
269270 if username is not None :
270271 connection_elem .set ("userName" , username )
@@ -1172,7 +1173,7 @@ def update_connections_req(
11721173 self ,
11731174 element : ET .Element ,
11741175 connection_luids : Iterable [str ],
1175- authentication_type : str ,
1176+ authentication_type : Optional [ str ] = None ,
11761177 username : Optional [str ] = None ,
11771178 password : Optional [str ] = None ,
11781179 embed_password : Optional [bool ] = None ,
@@ -1182,7 +1183,8 @@ def update_connections_req(
11821183 ET .SubElement (conn_luids_elem , "connectionLUID" ).text = luid
11831184
11841185 connection_elem = ET .SubElement (element , "connection" )
1185- connection_elem .set ("authenticationType" , authentication_type )
1186+ if authentication_type is not None :
1187+ connection_elem .set ("authenticationType" , authentication_type )
11861188
11871189 if username is not None :
11881190 connection_elem .set ("userName" , username )
0 commit comments