We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 402ae54 commit 52ef4d1Copy full SHA for 52ef4d1
cloudinit/sources/DataSourceAzure.py
@@ -11,6 +11,7 @@
11
import os.path
12
import re
13
import socket
14
+import warnings
15
import xml.etree.ElementTree as ET # nosec B405
16
from enum import Enum
17
from pathlib import Path
@@ -50,7 +51,9 @@
50
51
from cloudinit.url_helper import UrlError
52
53
try:
- import crypt # pylint: disable=W4901
54
+ with warnings.catch_warnings():
55
+ warnings.simplefilter("ignore", category=DeprecationWarning)
56
+ import crypt # pylint: disable=W4901
57
58
blowfish_hash: Any = functools.partial(
59
crypt.crypt, salt=f"$6${util.rand_str(strlen=16)}"
0 commit comments