Skip to content

Commit

Permalink
Removed _unpickle and test broken by its lack.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrassler committed Sep 19, 2024
1 parent 88cdc11 commit 68bcb33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions cloudinit/sources/DataSourceCloudCIX.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ def __init__(self, sys_cfg, distro, paths):
self._metadata_url = None
self._net_cfg = None

def _unpickle(self, ci_pkl_version: int) -> None:
super()._unpickle(ci_pkl_version)
if not hasattr(self, "_metadata_url"):
setattr(self, "_metadata_url", None)
if not hasattr(self, "_net_cfg"):
setattr(self, "_net_cfg", None)

def _get_data(self):
"""
Fetch the user data and the metadata
Expand Down
1 change: 1 addition & 0 deletions tests/unittests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class TestUpgrade:
"seed",
"seed_dir",
},
"CloudCIX": {"_metadata_url", "_net_cfg"},
"CloudSigma": {"cepko", "ssh_public_key"},
"CloudStack": {
"api_ver",
Expand Down

0 comments on commit 68bcb33

Please sign in to comment.