Skip to content

Commit

Permalink
Move to canonical org (#37)
Browse files Browse the repository at this point in the history
Please include a summary of the change and which issue is fixed.

Change links pointing to MAAS org to use Canonical org.

## Checklist before merging
- [x] Formatting: `tox -e format`
- [x] Linting: `tox -e sanity`
- [x] Unit tests: `tox -e units`
  • Loading branch information
SK1Y101 authored Mar 28, 2024
1 parent 6c33b5f commit 7bb2a1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ tags:
dependencies: {}

# The URL of the originating SCM repository
repository: https://github.com/maas/ansible-collection
repository: https://github.com/canonical/ansible-collection

# The URL to any online docs
documentation: https://github.com/maas/ansible-collection
documentation: https://github.com/canonical/ansible-collection

# The URL to the homepage of the collection/project
homepage: https://maas.io

# The URL to the collection issue tracker
issues: https://github.com/maas/ansible-collection/issues
issues: https://github.com/canonical/ansible-collection/issues

# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def request(
headers = dict(headers or DEFAULT_HEADERS, **self.auth_header)
if data is not None:
boundary, data = Multipart.get_mulipart(data)
headers[
"Content-type"
] = f'multipart/form-data; boundary="{boundary}"'
headers["Content-type"] = (
f'multipart/form-data; boundary="{boundary}"'
)
elif binary_data is not None:
data = binary_data

Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def payload_for_compose(self, module):
payload_string_list.append(f"vlan={net_interface['vlan']}")
if net_interface.get("name"):
payload_string_list.append(f"name={net_interface['name']}")
payload[
"interfaces"
] = f"{net_interface['label_name']}:{','.join(payload_string_list)}"
payload["interfaces"] = (
f"{net_interface['label_name']}:{','.join(payload_string_list)}"
)
break # Right now, compose only allows for one network interface.
if "storage" in payload:
tmp = payload.pop("storage")
Expand Down
1 change: 0 additions & 1 deletion plugins/module_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


class MaasValueMapper:

"""
Represent abstract class.
"""
Expand Down

0 comments on commit 7bb2a1b

Please sign in to comment.