Skip to content

Commit 8bd1215

Browse files
author
Naor Livne
committed
adding prune option
1 parent 51c26ca commit 8bd1215

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

NebulaPythonSDK/sdk.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ def roll_app(self, app):
8585
response = requests.request("POST", url, headers=headers, timeout=self.request_timeout)
8686
return response
8787

88+
# prune unused images on all devices running app on them
89+
def prune_images(self, app):
90+
url = self.host + "/api/apps/" + app + "/prune"
91+
headers = self.headers
92+
response = requests.request("POST", url, headers=headers, timeout=self.request_timeout)
93+
return response
94+
8895
# check that the contacted api is responding as expected
8996
def check_api(self):
9097
url = self.host + "/api/status"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__author__ = 'Naor Livne'
22
__author_email__ = 'naorlivne@gmail.com'
3-
__version__ = '1.5.2'
3+
__version__ = '1.6.0'
44

55
from setuptools import setup, find_packages
66

0 commit comments

Comments
 (0)