Skip to content

Commit 02c1720

Browse files
committed
minor bug fix
1 parent 9294773 commit 02c1720

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

ee/cli/plugins/site.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,16 @@ def default(self):
746746
if (self.app.pargs.wpsubdomain and not (self.app.pargs.html or
747747
self.app.pargs.php or self.app.pargs.mysql or
748748
self.app.pargs.wpsubdir or self.app.pargs.wp)):
749+
if (self.app.pargs.wpsubdomain and not (self.app.pargs.w3tc
750+
or self.app.pargs.wpfc or self.app.pargs.wpsc)):
751+
if (oldsitetype not in ['html', 'php', 'mysql', 'wp',
752+
'wpsubdomain']
753+
or (oldsitetype == 'wpsubdomain' and
754+
oldcachetype == 'basic')):
749755

750-
if (oldsitetype not in ['html', 'php', 'mysql', 'wp',
751-
'wpsubdomain']
752-
or (oldsitetype == 'wpsubdomain' and oldcachetype == 'basic')):
753-
Log.error(self, " Cannot update {0} {1} {2}"
754-
" to wpsubdomain basic"
755-
.format(ee_domain, oldsitetype, oldcachetype))
756+
Log.error(self, " Cannot update {0} {1} {2}"
757+
" to wpsubdomain basic"
758+
.format(ee_domain, oldsitetype, oldcachetype))
756759

757760
data = dict(site_name=ee_domain, www_domain=ee_www_domain,
758761
static=False, basic=True, wp=True, w3tc=False,
@@ -771,6 +774,7 @@ def default(self):
771774
if (oldsitetype not in ['html', 'php', 'mysql', 'wp',
772775
'wpsubdomain'] or
773776
(oldsitetype == 'wpsubdomain' and oldcachetype == 'w3tc')):
777+
print(oldsitetype, oldcachetype)
774778
Log.error(self, " Cannot update {0}, {1} {2}"
775779
" to wpsubdomain w3tc"
776780
.format(ee_domain, oldsitetype, oldcachetype))
@@ -792,6 +796,7 @@ def default(self):
792796
if (oldsitetype not in ['html', 'php', 'mysql', 'wp',
793797
'wpsubdomain'] or
794798
(oldsitetype == 'wpsubdomain' and oldcachetype == 'wpfc')):
799+
print(oldsitetype, oldcachetype)
795800
Log.error(self, " Cannot update {0}, {1} {2} "
796801
"to wpsubdomain wpfc"
797802
.format(ee_domain, oldsitetype, oldcachetype))
@@ -813,6 +818,7 @@ def default(self):
813818
if (oldsitetype not in ['html', 'php', 'mysql', 'wp',
814819
'wpsubdomain'] or
815820
(oldsitetype == 'wpsubdomain' and oldcachetype == 'wpsc')):
821+
print(oldsitetype, oldcachetype)
816822
Log.error(self, " Cannot update {0}, {1} {2}"
817823
" to wpsubdomain wpsc"
818824
.format(ee_domain, oldsitetype, oldcachetype))

0 commit comments

Comments
 (0)