@@ -402,7 +402,7 @@ async def assert_volume(compose, mount_dict):
402
402
log .debug ("podman volume inspect %s || podman volume create %s" , vol_name , vol_name )
403
403
# TODO: might move to using "volume list"
404
404
# podman volume list --format '{{.Name}}\t{{.MountPoint}}' \
405
- # -f f"label={compose.label_domain}.project=HERE"
405
+ # -f f"label={compose.label_domain}.compose. project=HERE"
406
406
try :
407
407
_ = (await compose .podman .output ([], "volume" , ["inspect" , vol_name ])).decode ("utf-8" )
408
408
except subprocess .CalledProcessError as e :
@@ -1458,7 +1458,7 @@ async def volume_ls(self, proj_name=None):
1458
1458
"ls" ,
1459
1459
"--noheading" ,
1460
1460
"--filter" ,
1461
- f"label={ self .compose . label_domain } .compose.project={ proj_name } " ,
1461
+ f"label={ self .label_domain } .compose.project={ proj_name } " ,
1462
1462
"--format" ,
1463
1463
"{{.Name}}" ,
1464
1464
],
@@ -1836,7 +1836,9 @@ def _parse_compose_file(self):
1836
1836
env_vars = norm_as_dict (args .env )
1837
1837
self .environ .update (env_vars )
1838
1838
1839
- compose = {}
1839
+ compose = {
1840
+ label_domain : label_domain ,
1841
+ }
1840
1842
# Iterate over files primitively to allow appending to files in-loop
1841
1843
files_iter = iter (files )
1842
1844
@@ -2509,10 +2511,10 @@ async def compose_up(compose: PodmanCompose, args):
2509
2511
"ps" ,
2510
2512
[
2511
2513
"--filter" ,
2512
- f"label={ compose .label_domain } .compose.project={ compose .project_name } " ,
2514
+ f"label={ args .label_domain } .compose.project={ compose .project_name } " ,
2513
2515
"-a" ,
2514
2516
"--format" ,
2515
- '{{ index .Labels "' + compose .label_domain + '.compose.config-hash"}}' ,
2517
+ '{{ index .Labels "' + args .label_domain + '.compose.config-hash"}}' ,
2516
2518
],
2517
2519
)
2518
2520
)
@@ -2657,7 +2659,7 @@ async def compose_down(compose, args):
2657
2659
"ps" ,
2658
2660
[
2659
2661
"--filter" ,
2660
- f"label={ compose .label_domain } .compose.project={ compose .project_name } " ,
2662
+ f"label={ args .label_domain } .compose.project={ compose .project_name } " ,
2661
2663
"-a" ,
2662
2664
"--format" ,
2663
2665
"{{ .Names }}" ,
@@ -2694,7 +2696,7 @@ async def compose_ps(compose, args):
2694
2696
ps_args = [
2695
2697
"-a" ,
2696
2698
"--filter" ,
2697
- f"label={ compose .label_domain } .compose.project={ compose .project_name } " ,
2699
+ f"label={ args .label_domain } .compose.project={ compose .project_name } " ,
2698
2700
]
2699
2701
if args .quiet is True :
2700
2702
ps_args .extend (["--format" , "{{.ID}}" ])
0 commit comments