@@ -543,6 +543,10 @@ def _disconnect_target(self, application_name, application_dict, message):
543543 def _get_plan_path (self , plan_path , archive_file , source_name , deployment_type , deployment_name , deployment_dict ):
544544 _method_name = '_get_plan_path'
545545
546+ if self ._model_context .is_skip_archive ():
547+ # Just return None so that the model plan file stays the same.
548+ return None
549+
546550 plan_dir = None
547551 if model_constants .PLAN_DIR in deployment_dict :
548552 plan_dir = deployment_dict [model_constants .PLAN_DIR ]
@@ -551,19 +555,21 @@ def _get_plan_path(self, plan_path, archive_file, source_name, deployment_type,
551555
552556 if deployment_type == model_constants .LIBRARY :
553557 archive_entry_type = WLSDeployArchive .ArchiveEntryType .SHLIB_PLAN
554- download_file_type = 'sharedLibraries'
555558 remote_archive_path = WLSDeployArchive .getShlibPlanArchivePath (plan_file_name )
556- archive_add_method = archive_file .addSharedLibraryDeploymentPlan
557559 else :
558560 archive_entry_type = WLSDeployArchive .ArchiveEntryType .APPLICATION_PLAN
559- download_file_type = 'applications'
560561 remote_archive_path = WLSDeployArchive .getApplicationPlanArchivePath (plan_file_name )
561- archive_add_method = archive_file .addApplicationDeploymentPlan
562562
563563 if self ._model_context .is_remote ():
564564 new_plan_name = remote_archive_path
565565 self .add_to_remote_map (plan_path , new_plan_name , archive_entry_type .name ())
566- elif not self ._model_context .is_skip_archive ():
566+ else :
567+ if deployment_type == model_constants .LIBRARY :
568+ download_file_type = 'sharedLibraries'
569+ archive_add_method = archive_file .addSharedLibraryDeploymentPlan
570+ else :
571+ download_file_type = 'applications'
572+ archive_add_method = archive_file .addApplicationDeploymentPlan
567573 try :
568574 if self ._model_context .is_ssh ():
569575 plan_file_name = self .download_deployment_from_remote_server (
@@ -582,7 +588,7 @@ def _get_plan_path(self, plan_path, archive_file, source_name, deployment_type,
582588 _logger .throwing (class_name = _class_name , method_name = _method_name , error = de )
583589 raise de
584590
585- return new_plan_name
591+ return new_plan_name
586592
587593 def _resolve_deployment_plan_path (self , plan_dir , plan_path ):
588594 """
0 commit comments