Skip to content

Commit

Permalink
Added overwrite_from_index api attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
midnightercz committed Mar 30, 2020
1 parent 270aea4 commit 54cc566
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion iiblib/iibclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ def add_bundles(
arches,
cnr_token=None,
organization=None,
overwrite_from_index=False,
raw=False,
):
"""Rebuild index image with new bundles to be added.
Expand Down Expand Up @@ -456,6 +457,7 @@ def add_bundles(
"binary_image": binary_image,
"bundles": bundles,
"add_arches": arches,
"overwrite_from_index": overwrite_from_index,
}

if cnr_token:
Expand All @@ -471,7 +473,15 @@ def add_bundles(
return resp.json()
return IIBBuildDetailsModel.from_dict(resp.json())

def remove_operators(self, index_image, binary_image, operators, arches, raw=False):
def remove_operators(
self,
index_image,
binary_image,
operators,
arches,
overwrite_from_index=False,
raw=False,
):
"""Rebuild index image with existing operators to be removed.
Args:
Expand Down Expand Up @@ -499,6 +509,7 @@ def remove_operators(self, index_image, binary_image, operators, arches, raw=Fal
"binary_image": binary_image,
"operators": operators,
"add_arches": arches,
"overwrite_from_index": overwrite_from_index,
},
)

Expand Down

0 comments on commit 54cc566

Please sign in to comment.