canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
3.01k stars 887 forks source link

fix _get_str_class_num #5835

Closed xiaoge1001 closed 1 month ago

xiaoge1001 commented 1 month ago

Proposed Commit Message

Fix the issue of duplicate judgment conditions in the _get_str_class_num function

The problem introduced by commit https://github.com/canonical/cloud-init/commit/879945f56103d937a7fee84bfe7662dc2a5be708

Fixes GH-5814

Additional Context

Test Steps

Merge type