We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8530b32 commit 8060f1dCopy full SHA for 8060f1d
pyinfra_cli/inventory.py
@@ -108,7 +108,7 @@ def make_inventory(
108
groups = _get_groups_from_filename(inventory_filename)
109
# Used to set all the hosts to an additional group - that of the filename
110
# ie inventories/dev.py means all the hosts are in the dev group, if not present
111
- file_groupname = path.basename(inventory_filename).rsplit('.')[0]
+ file_groupname = path.basename(inventory_filename).rsplit('.', 1)[0]
112
113
all_data = {}
114
0 commit comments