Project

Profile

Help

Issue #1062

closed

omit_hidden option for render_document does not influence nested structures

Added by ipanova@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.7.0 Beta
Platform Release:
2.7.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

if you will change to False omit_hidden=False it should print values that start with "_"
In reality even with omit_hidden=False values with underscore are not printed if they are nested:

$ pulp-admin -vv status

+----------------------------------------------------------------------+
                          Status of the server
+----------------------------------------------------------------------+

2015-06-17 17:20:52,496 - DEBUG - sending GET request to /pulp/api/v2/status/
2015-06-17 17:20:52,677 - INFO - GET request to /pulp/api/v2/status/ with parameters None
2015-06-17 17:20:52,677 - INFO - Response status : 200 

2015-06-17 17:20:52,677 - INFO - Response body :
 {
  "known_workers": [
    {
      "last_heartbeat": "2015-06-17T15:20:29Z", 
      "_id": "scheduler@example.com"
    }, 
    {
      "last_heartbeat": "2015-06-17T15:20:26Z", 
      "_id": "resource_manager@example.com"
    }, 
    {
      "last_heartbeat": "2015-06-17T15:20:28Z", 
      "_id": "reserved_resource_worker-0@example.com"
    }, 
    {
      "last_heartbeat": "2015-06-17T15:20:29Z", 
      "_id": "reserved_resource_worker-1@example.com"
    }
  ], 
  "versions": {
    "platform_version": "2.7.0a2"
  }, 
  "database_connection": {
    "connected": true
  }, 
  "api_version": "2", 
  "messaging_connection": {
    "connected": true
  }
}

Api Version:           2
Database Connection:   
  Connected: True
Known Workers:         
  Last Heartbeat: 2015-06-17T15:20:29Z
  Last Heartbeat: 2015-06-17T15:20:26Z
  Last Heartbeat: 2015-06-17T15:20:28Z
  Last Heartbeat: 2015-06-17T15:20:29Z
Messaging Connection:  
  Connected: True
Versions:              
  Platform Version: 2.7.0a2

Note that _id is missing

Also available in: Atom PDF