omnata-plugin-runtime 0.8.0a190__tar.gz → 0.8.0a192__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.8.0a190
3
+ Version: 0.8.0a192
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.8.0-a190"
3
+ version = "0.8.0-a192"
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"
@@ -34,7 +34,7 @@ class CustomLoggerAdapter(logging.LoggerAdapter):
34
34
  kwargs["extra"] = extra
35
35
  return msg, kwargs
36
36
 
37
- logger = CustomLoggerAdapter(getLogger("omnata_plugin"), {})
37
+ logger = CustomLoggerAdapter(getLogger("omnata"), {})
38
38
 
39
39
  def log_exception(exception: Exception, logger_instance: Logger):
40
40
  """
@@ -84,6 +84,7 @@ class PluginEntrypoint:
84
84
 
85
85
 
86
86
  def sync(self, sync_request: Dict):
87
+ request = TypeAdapter(SyncRequestPayload).validate_python(sync_request)
87
88
  logger.add_extra('omnata.operation', 'sync')
88
89
  logger.add_extra('omnata.sync.id', request.sync_id)
89
90
  logger.add_extra('omnata.sync.direction', request.sync_direction)
@@ -95,7 +96,6 @@ class PluginEntrypoint:
95
96
  with tracer.start_as_current_span("initialization") as span:
96
97
  span.add_event("Fetching secrets")
97
98
 
98
- request = TypeAdapter(SyncRequestPayload).validate_python(sync_request)
99
99
  connection_secrets = get_secrets(
100
100
  request.oauth_secret_name, request.other_secrets_name
101
101
  )