cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devd...@apache.org
Subject [1/3] git commit: updated refs/heads/4.4 to b78aee8
Date Tue, 15 Apr 2014 07:39:43 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4 0023196ca -> b78aee8f1


CLOUDSTACK-6398:[hyper-v] changed auto shutdown and startup actions of VMs to shutdown and
nothingauto shutdown and startup actions of VMs to shutdown and nothing so that they are consistent
with cloudstack auto shudown and startup behavior


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/36103633
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/36103633
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/36103633

Branch: refs/heads/4.4
Commit: 36103633c2764fe33374f5cbfb1ac0d5bf24ed1b
Parents: 0023196
Author: Anshul Gangwar <anshul.gangwar@citrix.com>
Authored: Sun Apr 13 23:29:20 2014 -0700
Committer: Devdeep Singh <devdeep@gmail.com>
Committed: Tue Apr 15 12:24:13 2014 +0530

----------------------------------------------------------------------
 .../hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/36103633/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
index 79fd0bc..c10aaa3 100644
--- a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
+++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
@@ -1744,9 +1744,12 @@ namespace HypervResource
         {
             // Tweak default settings by basing new VM on default global setting object 
             // with designed display name.
-
+            UInt16 startupAction = 2; // Do nothing.
+            UInt16 stopAction = 4; // Shutdown.
             VirtualSystemSettingData vs_gs_data = VirtualSystemSettingData.CreateInstance();
             vs_gs_data.LateBoundObject["ElementName"] = name;
+            vs_gs_data.LateBoundObject["AutomaticStartupAction"] = startupAction.ToString();
+            vs_gs_data.LateBoundObject["AutomaticShutdownAction"] = stopAction.ToString();
 
             System.Management.ManagementPath jobPath;
             System.Management.ManagementPath defined_sys;


Mime
View raw message