Skip to content

Commit 0853076

Browse files
roycaihwk8s-ci-robot
authored andcommitted
avoid backup api_client when patch (#102)
1 parent 382eb04 commit 0853076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi/python.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ sed -i "s/if not async/if not async_req/g" "${OUTPUT_DIR}/${PACKAGE_NAME}/api_cl
6363

6464
# workaround https://github.com/swagger-api/swagger-codegen/pull/8061 (thread pool only on demand)
6565
# TODO: Remove this when above merges
66-
patch "${OUTPUT_DIR}/${PACKAGE_NAME}/api_client.py" "${SCRIPT_ROOT}/python-api_client.py.patch"
66+
patch "${OUTPUT_DIR}/${PACKAGE_NAME}/api_client.py" "${SCRIPT_ROOT}/python-api_client.py.patch" --no-backup-if-mismatch
6767

6868
find "${OUTPUT_DIR}/test" -type f -name \*.py -exec sed -i 's/\bclient/kubernetes.client/g' {} +
6969
find "${OUTPUT_DIR}" -path "${OUTPUT_DIR}/base" -prune -o -type f -a -name \*.md -exec sed -i 's/\bclient/kubernetes.client/g' {} +

0 commit comments

Comments
 (0)