old_contents: import salt.cloud
  
  from st2actions.runners.pythonrunner import Action
  
  
  class SaltInstaller(Action):
      def run(name, provider, instance_id):
          client = salt.cloud.CloudClient('/etc/salt/cloud')
          ret = client.create(names=[name], provider=provider,
                              instance_id=instance_id)
          return ret
  
new_contents: import salt.cloud
  
  from st2actions.runners.pythonrunner import Action
  
  
  class SaltInstaller(Action):
      def run(self, name, provider, instance_id):
          client = salt.cloud.CloudClient('/etc/salt/cloud')
          ret = client.create(names=[name], provider=provider,
                              instance_id=instance_id)
          return ret
  
subject: add self...