Merge pull request #1566 from greenqloud/pr-fix-mgmt-setup-master

[CLOUDSTACK-9645] Followup fix for #1162: Add support for not (re)starting server after cloud-setup-management.New version against #1330, opened against master.

```
Moving stop of management in config inside if statement.

It will only run the stop command when --no-start is specified.
```

* pr/1566:
  CLOUDSTACK-9645: Moving stop of management in config inside if statement.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2016-12-08 00:19:46 +05:30
commit 51aa698010
1 changed files with 1 additions and 2 deletions

View File

@ -137,9 +137,8 @@ class cloudManagementConfig(serviceCfgBase):
except:
pass
self.syscfg.svo.stopService("cloudstack-management")
if self.syscfg.env.noStart == False:
self.syscfg.svo.stopService("cloudstack-management")
if self.syscfg.svo.enableService("cloudstack-management"):
return True
else: