Skip to content

Commit 87ac4cf

Browse files
cli: fix deprecated Python logging warning method
Signed-off-by: Emmanuel Ferdman <[email protected]> Co-authored-by: Nick Mills-Barrett <[email protected]>
1 parent 4d48cf6 commit 87ac4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyinfra_cli/inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def make_inventory(
172172
# The inventory is either an inventory file or a (list of) hosts
173173
return make_inventory_from_files(inventory, override_data, cwd, group_data_directories)
174174
elif inventory_func is None:
175-
logger.warn(
175+
logger.warning(
176176
f"{inventory} is neither an inventory file, a (list of) hosts or connectors "
177177
"nor refers to a python module"
178178
)

0 commit comments

Comments
 (0)