Skip to content

Commit

Permalink
adding non-replicate custom schedule support to astraSDK
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haigh <mhaigh@netapp.com>
  • Loading branch information
MichaelHaigh committed May 9, 2024
1 parent 7b0d02e commit 4ef9071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion astraSDK/protections.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def main(
appID,
recurrenceRule=None,
bucketID=None,
customNonReplicate=False,
):
endpoint = f"k8s/v1/apps/{appID}/schedules"
url = self.base + endpoint
Expand All @@ -204,7 +205,8 @@ def main(
}
if recurrenceRule:
data["recurrenceRule"] = recurrenceRule
data["replicate"] = "true"
if customNonReplicate is False:
data["replicate"] = "true"
if bucketID:
data["bucketID"] = bucketID

Expand Down

0 comments on commit 4ef9071

Please sign in to comment.