question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Warning: Discriminator source is absent or null, use base class ResourceDetails." when iterating SecurityAssessment object

See original GitHub issue
  • site-packages/azure/mgmt/security/operations/_assessments_operations.py:
  • Module: SecurityAssessmentList
  • MacOS:
  • Python Version- 3.8:

Describe the bug getting this warning for every iteration over SecurityAssessmentList object. Discriminator source is absent or null, use base class ResourceDetails.

To Reproduce Steps to reproduce the behavior:

  1. list of assessments:
assessments = client.assessments.list(scope=subscription.id)
assessments_requests = {}
for assessment in assessments:
      <etc...> 
  1. get specific assessment: client.assessments.get(assessment_id, assessment.name, 'metadata')

Expected behavior no warnings

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
schumixmdcommented, Nov 18, 2022

/unresolve this seems to still be a problem

1reaction
kashifkhancommented, Jun 13, 2022

@nadavu Thanks for your feedback, we’ll investigate asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discriminator source is absent or null, use base class ... - GitHub
"Warning: Discriminator source is absent or null, use base class ResourceDetails." when serializing SecurityAssessment object #13316.
Read more >
Index (Oracle Cloud Infrastructure Java SDK - 3.2.0)
Abstract builder base class for authentication details provider extending AbstractRequestingAuthenticationDetailsProvider.
Read more >
Juniper Networks Glossary - TechLibrary
Represents a component such as a workstation, router, switch, subnetwork, or any other object connected to the network. Use address book objects to...
Read more >
azure-sdk-for-python - bytemeta
"Warning: Discriminator source is absent or null, use base class ResourceDetails." when iterating SecurityAssessment object. jenhagg.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found