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
4 changes: 4 additions & 0 deletions src/aosm/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ Release History
* Initial release - beta quality
* `az aosm nfd|nsd generate-config` to generate an example config file to fill in for an NFD or NSD
* `az aosm nfd|nsd build|publish|delete` to prepare files for, publish or delete an NFD or NSD

1.0.0b2
++++++++
* Fixed: Use default_factory when a dataclass default is hashable (Python 3.11 compatibility)
6 changes: 3 additions & 3 deletions src/aosm/azext_aosm/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ def acr_manifest_names(self) -> List[str]:
class VNFConfiguration(NFConfiguration):
blob_artifact_store_name: str = ""
image_name_parameter: str = ""
arm_template: Union[Dict[str, str], ArtifactConfig] = ArtifactConfig()
vhd: Union[Dict[str, str], VhdArtifactConfig] = VhdArtifactConfig()
arm_template: Union[Dict[str, str], ArtifactConfig] = field(default_factory=ArtifactConfig)
vhd: Union[Dict[str, str], VhdArtifactConfig] = field(default_factory=VhdArtifactConfig)

@classmethod
def helptext(cls) -> "VNFConfiguration":
Expand Down Expand Up @@ -465,7 +465,7 @@ def validate(self):

@dataclass
class CNFConfiguration(NFConfiguration):
images: Union[Dict[str, str], CNFImageConfig] = CNFImageConfig()
images: Union[Dict[str, str], CNFImageConfig] = field(default_factory=CNFImageConfig)
helm_packages: List[Union[Dict[str, Any], HelmPackageConfig]] = field(
default_factory=lambda: []
)
Expand Down
2 changes: 1 addition & 1 deletion src/aosm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.
VERSION = "1.0.0b1"
VERSION = "1.0.0b2"

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down