Skip to content

Commit

Permalink
use instance_id as string for plugin sections
Browse files Browse the repository at this point in the history
If `instance_id` is set in the metadata as an integer, cast it as a
string when used to uniquely identify plugin sections.

Change-Id: I3a9335fb3885c5f3191051aaaeeec94f89a6b89a
  • Loading branch information
ader1990 committed Oct 12, 2023
1 parent 102cd5a commit 609e283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudbaseinit/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _get_plugins_section(self, instance_id):
if not instance_id:
return self._PLUGINS_CONFIG_SECTION
else:
return instance_id + "/" + self._PLUGINS_CONFIG_SECTION
return ("%s/%s" % (instance_id, self._PLUGINS_CONFIG_SECTION))

def _get_plugin_status(self, osutils, instance_id, plugin_name):
return osutils.get_config_value(plugin_name,
Expand Down

0 comments on commit 609e283

Please sign in to comment.