code: def output_datacenter(gandi, datacenter, output_keys, justify=14):
      
      output_generic(gandi, datacenter, output_keys, justify)
  
      if 'dc_name' in output_keys:
          output_line(gandi, 'datacenter', datacenter['name'], justify)
  
      if 'status' in output_keys:
          deactivate_at = datacenter.get('deactivate_at')
          if deactivate_at:
              output_line(gandi, 'closing on',
                          deactivate_at.strftime('%d/%m/%Y'), justify)
  
          closing = []
          iaas_closed_for = datacenter.get('iaas_closed_for')
          if iaas_closed_for == 'ALL':
              closing.append('vm')
  
          paas_closed_for = datacenter.get('paas_closed_for')
          if paas_closed_for == 'ALL':
              closing.append('paas')
  
          if closing:
              output_line(gandi, 'closed for', ', '.join(closing), justify)
docs: Helper to output datacenter information.