This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2409
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 2f278fb9803a35b2a1d5d4be5b562e35196d9da9
Author: leonidfrolov <[email protected]>
AuthorDate: Wed Oct 6 14:36:24 2021 +0300

    [DATALAB-2409]: fixed sed for managing /opt mount on azure
---
 infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py 
b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
index b83aba7..756dd27 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1240,7 +1240,7 @@ def ensure_right_mount_paths():
              if disk != '' and disk not in datalab.fab.conn.sudo('lsblk | grep 
-E "(mnt|media)"').stdout and disk not in datalab.fab.conn.sudo("fdisk -l | 
grep 'BIOS boot'").stdout:
                  datalab.fab.conn.sudo("umount -l /opt")
                  datalab.fab.conn.sudo("mount /dev/{}1 /opt".format(disk))
-                 datalab.fab.conn.sudo('sed -i "/opt/ s|/dev/{}|/dev/{}1|g" 
/etc/fstab'.format(opt_disk, disk))
+                 datalab.fab.conn.sudo('sed -i "/opt/ s|/dev/{}1|/dev/{}1|g" 
/etc/fstab'.format(opt_disk, disk))
 
 def prepare_vm_for_image(creds=False, os_user='', hostname='', keyfile=''):
     if creds:

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to