Skip to content

Commit

Permalink
Merge pull request #726 from vespa-engine/tmaregge/experimental-warnings
Browse files Browse the repository at this point in the history
Warn user upon prod deployment
  • Loading branch information
tmaregge committed Apr 4, 2024
2 parents a981772 + 9ea7b7e commit e1a7da2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vespa/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ def deploy_to_prod(self, instance: Optional[str]="default", disk_folder: Optiona
:param disk_folder: Disk folder to save the required Vespa config files. Default to application name
folder within user's current working directory.
"""
logging.warning("This feature is experimental and may fail in unexpected ways. Expect better support in future releases.")

if not disk_folder:
disk_folder = os.path.join(os.getcwd(), self.application_package.name)
self.application_package.to_files(disk_folder)
Expand Down

0 comments on commit e1a7da2

Please sign in to comment.