add build file

This commit is contained in:
wanyaoqi
2019-07-10 20:12:20 +08:00
parent 3acf030fef
commit dc4b791f7e
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
DESCRIPTION="Yunion Host Deploy Agent"
+2 -2
View File
@@ -1354,9 +1354,9 @@ func (s *SKVMGuestInstance) StaticSaveSnapshot(
if err != nil {
return nil, err
}
location := path.Join(disk.GetSnapshotDir(), snapshotId)
location := path.Join(disk.GetSnapshotLocation(), snapshotId)
res := jsonutils.NewDict()
res.Set("localtion", jsonutils.NewString(location))
res.Set("location", jsonutils.NewString(location))
return res, nil
}
@@ -226,7 +226,7 @@ func (s *SDeployService) PrepareEnv() error {
}
if !winutils.CheckTool(DeployOption.ChntpwPath) {
return fmt.Errorf("Failed to find chntpw tool")
log.Errorf("Failed to find chntpw tool")
}
output, err = procutils.NewCommand("pvscan").Run()