From 7c38f360236c892d02c721fb84ae8852d9250645 Mon Sep 17 00:00:00 2001 From: ydu Date: Wed, 10 Sep 2025 11:50:05 +0200 Subject: [PATCH] Change update doc action --- .github/workflows/update_doc.yml | 6 +++--- msa_sdk/util.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update_doc.yml b/.github/workflows/update_doc.yml index 248bab2f..681d026b 100644 --- a/.github/workflows/update_doc.yml +++ b/.github/workflows/update_doc.yml @@ -32,13 +32,13 @@ jobs: python-version: 3.12 - name: Create pull request - uses: car-on-sale/action-pull-request-another-repo@v1.3.1 + uses: gabrielpossamai/action-pull-request-another-repo@main env: API_TOKEN_GITHUB: ${{ env.GITHUB_TOKEN }} with: source_folder: 'msa_sdk_doc/msa_sdk/' - destination_repo: 'ubiqube/msa-docker' - destination_folder: 'front/msa_sdk_doc' + destination_repo: 'ubiqube/msa-front' + destination_folder: 'msa_sdk_doc' destination_base_branch: 'master' destination_head_branch: 'update_pythonsdk_doc' user_email: 'qa@ubiqube.com' diff --git a/msa_sdk/util.py b/msa_sdk/util.py index ae6c286d..d69dbcf3 100644 --- a/msa_sdk/util.py +++ b/msa_sdk/util.py @@ -80,7 +80,7 @@ def get_ip_range(start, end) -> list: return result -def cidr_to_range(cdir): +def cidr_to_range(cidr): """ Get the Start and End Address of the IP range from CIDR. @@ -89,15 +89,15 @@ def cidr_to_range(cdir): Parameters ---------- - cdir: String - cdir range + cidr: String + cidr range Returns ------- list: List of ip range """ - r_ips = list(ip_network(cdir).hosts()) + r_ips = list(ip_network(cidr).hosts()) ip_range = [str(x) for x in r_ips] return ip_range