Skip to content

Commit

Permalink
correct scvmm references. fixes Azure#185
Browse files Browse the repository at this point in the history
  • Loading branch information
hglkrijger committed May 27, 2016
1 parent b05e389 commit 2570210
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azurelinuxagent/distro/default/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def daemon(self):
os.chdir(conf.get_lib_dir())

if conf.get_detect_scvmm_env():
if self.distro.scvmm_handler.run():
if self.distro.scvmm_handler.detect_scvmm_env():
return

self.distro.provision_handler.run()
Expand Down
5 changes: 3 additions & 2 deletions azurelinuxagent/distro/default/scvmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import os
import subprocess
import azurelinuxagent.logger as logger
import azurelinuxagent.conf as conf

VMM_CONF_FILE_NAME = "linuxosconfiguration.xml"
VMM_STARTUP_SCRIPT_NAME= "install"
Expand All @@ -31,7 +32,7 @@ def __init__(self, distro):
def detect_scvmm_env(self):
logger.info("Detecting Microsoft System Center VMM Environment")
self.distro.osutil.mount_dvd(max_retry=1, chk_err=False)
mount_point = self.distro.osutil.get_dvd_mount_point()
mount_point = conf.get_dvd_mount_point()
found = os.path.isfile(os.path.join(mount_point, VMM_CONF_FILE_NAME))
if found:
self.start_scvmm_agent()
Expand All @@ -42,7 +43,7 @@ def detect_scvmm_env(self):
def start_scvmm_agent(self):
logger.info("Starting Microsoft System Center VMM Initialization "
"Process")
mount_point = self.distro.osutil.get_dvd_mount_point()
mount_point = conf.get_dvd_mount_point()
startup_script = os.path.join(mount_point, VMM_STARTUP_SCRIPT_NAME)
subprocess.Popen(["/bin/bash", startup_script, "-p " + mount_point])

0 comments on commit 2570210

Please sign in to comment.