omnata-plugin-runtime 0.7.0a183__tar.gz → 0.7.0a184__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.7.0a183
3
+ Version: 0.7.0a184
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.7.0-a183"
3
+ version = "0.7.0-a184"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -395,7 +395,10 @@ class PluginEntrypoint:
395
395
  def connection_form(self,connectivity_option: str):
396
396
  connectivity_option = TypeAdapter(ConnectivityOption).validate_python(connectivity_option)
397
397
  logger.info("Entered connection_form method")
398
- form: List[ConnectionMethod] = self._plugin_instance.connection_form(connectivity_option=connectivity_option)
398
+ if self._plugin_instance.connection_form.connection_form.__code__.co_argcount==1:
399
+ form: List[ConnectionMethod] = self._plugin_instance.connection_form()
400
+ else:
401
+ form: List[ConnectionMethod] = self._plugin_instance.connection_form(connectivity_option)
399
402
  return [f.model_dump() for f in form]
400
403
 
401
404
  def create_billing_events(self, session, event_request: Dict):