Skip to content

Commit

Permalink
Updates the python generator
Browse files Browse the repository at this point in the history
Fixes #133
  • Loading branch information
palnabarun committed Oct 24, 2019
1 parent f14e0bb commit 1c82c0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ echo "--- Patching generated code..."
find "${OUTPUT_DIR}/test" -type f -name \*.py -exec sed -i 's/\bclient/kubernetes.client/g' {} +
find "${OUTPUT_DIR}" -path "${OUTPUT_DIR}/base" -prune -o -type f -a -name \*.md -exec sed -i 's/\bclient/kubernetes.client/g' {} +
find "${OUTPUT_DIR}" -path "${OUTPUT_DIR}/base" -prune -o -type f -a -name \*.md -exec sed -i 's/kubernetes.client-python/client-python/g' {} +
find "${OUTPUT_DIR}" -path "${OUTPUT_DIR}/base" -prune -o -type f -a -name \*.md -exec sed -i 's/kubernetes-kubernetes.client/kubernetes-client/g' {} +

# fix imports
find "${OUTPUT_DIR}/client/" -type f -name \*.py -exec sed -i 's/import client\./import kubernetes.client./g' {} +
Expand Down

0 comments on commit 1c82c0a

Please sign in to comment.