def check_postmigrate_dir(self): if not FileHelper.get_list_executable_files_in_dir(os.path.join(settings.assessment_results_dir, settings.postmigrate_dir)): if not self.conf.assumeyes: accept = ['y', 'yes'] log_message("The '%s' folder is empty - scripts to be executed " "after the migration should be placed " "here." % os.path.join(settings.result_dir, settings.postmigrate_dir)) message = "Do you want to continue with kickstart " \ "generation without any postmigration scripts?" choice = MessageHelper.get_message(message=message, prompt="(Y/n)") if choice.lower() not in accept: return None return True
def check_postmigrate_dir(self): if not FileHelper.get_list_executable_files_in_dir( os.path.join(settings.assessment_results_dir, settings.postmigrate_dir)): if not self.conf.assumeyes: accept = ['y', 'yes'] log_message( "The '%s' folder is empty - scripts to be executed " "after the migration should be placed " "here." % os.path.join(settings.result_dir, settings.postmigrate_dir)) message = "Do you want to continue with kickstart " \ "generation without any postmigration scripts?" choice = MessageHelper.get_message(message=message, prompt="(Y/n)") if choice.lower() not in accept: return None return True