File tree Expand file tree Collapse file tree
src/provisioningserver/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ def get_maas_common_command():
4040 if is_dev_environment ():
4141 from maastesting import dev_root
4242
43- return os .path .join (dev_root , "bin/maas-common" )
43+ return os .path .join (dev_root , "usr/ bin/maas-common" )
4444 elif snap .running_in_snap ():
4545 # there's no maas-common in the snap as maas-rack is always present
4646 return os .path .join (
47- snap .SnapPaths .from_environ ().snap , "bin/maas-rack"
47+ snap .SnapPaths .from_environ ().snap , "usr/ bin/maas-rack"
4848 )
4949 else :
5050 return get_path ("usr/lib/maas/maas-common" )
Original file line number Diff line number Diff line change @@ -412,14 +412,14 @@ def test_returns_maas_rack_for_snap(self):
412412 provisioningserver .config .is_dev_environment .return_value = False
413413 self .patch (os , "environ" , {"SNAP" : "/snap/maas/10" })
414414 self .assertEqual (
415- get_maas_common_command (), "/snap/maas/10/bin/maas-rack"
415+ get_maas_common_command (), "/snap/maas/10/usr/ bin/maas-rack"
416416 )
417417
418418 def test_returns_full_path_for_development (self ):
419419 self .patch (provisioningserver .config , "is_dev_environment" )
420420 provisioningserver .config .is_dev_environment .return_value = True
421421 self .assertEqual (
422- dev_root .rstrip ("/" ) + "/bin/maas-common" ,
422+ dev_root .rstrip ("/" ) + "/usr/ bin/maas-common" ,
423423 get_maas_common_command (),
424424 )
425425
You can’t perform that action at this time.
0 commit comments