Skip to content

Commit 869d1ce

Browse files
committed
Merge branch 'feature/allow-to-deploy-instance-with-existing-volumes' into develop
2 parents a00db45 + eebae3a commit 869d1ce

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Changelog
22
=========
33

4+
* Added support for deploying a new instance with existing volumes
5+
46
v1.1.2 (2023-03-02)
57
-------------------
68

datacrunch/instances/instances.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def create(self,
349349
location: str = "FIN1",
350350
startup_script_id: str = None,
351351
volumes: List[Dict] = None,
352+
existing_volumes: List[str] = None,
352353
os_volume: Dict = None,
353354
is_spot: bool = False,
354355
coupon: str = None) -> Instance:
@@ -370,6 +371,8 @@ def create(self,
370371
:type startup_script_id: str, optional
371372
:param volumes: List of volume data dictionaries to create alongside the instance
372373
:type volumes: List[Dict], optional
374+
:param existing_volumes: List of existing volume ids to attach to the instance
375+
:type existing_volumes: List[str], optional
373376
:param os_volume: OS volume details, defaults to None
374377
:type os_volume: Dict, optional
375378
:param is_spot: Is spot instance
@@ -389,6 +392,7 @@ def create(self,
389392
"location": location,
390393
"os_volume": os_volume,
391394
"volumes": volumes,
395+
"existing_volumes": existing_volumes,
392396
"is_spot": is_spot,
393397
"coupon": coupon
394398
}

0 commit comments

Comments
 (0)