Skip to content

Commit 3ae9118

Browse files
authored
Merge pull request #324 from rstudio/bcwu-redeploy2unknown
allow redeployment to unknown app mode
2 parents 650d9f3 + 881e90a commit 3ae9118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsconnect/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def validate_app_mode(self, *args, **kwargs):
852852
existing_app_mode = AppModes.get_by_cloud_name(app.json_data["mode"])
853853
else:
854854
raise RSConnectException("Unable to infer Connect client.")
855-
if existing_app_mode and app_mode != existing_app_mode:
855+
if existing_app_mode and existing_app_mode not in (None, AppModes.UNKNOWN, app_mode):
856856
msg = (
857857
"Deploying with mode '%s',\n"
858858
+ "but the existing deployment has mode '%s'.\n"

0 commit comments

Comments
 (0)