MCPcopy Create free account
hub / github.com/apache/cloudstack / remove

Method remove

systemvm/debian/opt/cloud/bin/cs/CsApp.py:36–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 """ Set up Apache """
35
36 def remove(self):
37 file = "/etc/apache2/sites-enabled/vhost-%s.conf" % self.ip
38 if os.path.isfile(file):
39 os.remove(file)
40 CsHelper.service("apache2", "restart")
41
42 def setup(self):
43 CsHelper.copy_if_needed("/etc/apache2/vhost.template",

Callers 2

post_config_changeMethod · 0.95
compareMethod · 0.95

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected