Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/update_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions msa_sdk/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down