isusanin / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

--format option does not work for dns record-sets export #424

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
- run: gcloud dns record-sets --format json -z <your-zone>  export dns.json

What is the expected output? What do you see instead?
- the dns.json file contains the YAML format instead of JSON.
- Also the command output prints and extra "[]":

> gcloud dns record-sets --format json -z <your-one>  export dns.json
Exported record-sets to [dns.json].
[]

What is the output of 'gcloud info'?
I have replaced some values with ellipses.
---------------------------

$ gcloud info
Google Cloud SDK [90.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Aug 22 2015, 20:33:39)  [GCC 4.2.1 Compatible 
Apple LLVM 7.0.0 (clang-700.0.59.1)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]

Installation Root: [/Users/gabriel/gcloud/google-cloud-sdk]
Installed Components:
  core: [2015.12.07]
  core-nix: [2015.11.24]
  kubectl: []
  gcloud: []
  gsutil-nix: [4.15]
  gsutil: [4.16]
  bq: [2.0.18]
  bq-nix: [2.0.18]
  kubectl-darwin-x86_64: [1.1.2]
System PATH: [...]
Cloud SDK on PATH: [True]

Installation Properties: [...]
User Config Directory: [...]
User Properties: [...]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [...]
Project: [...]

Current Properties:
  [core]
    project: [...]
    account: [...]
    disable_usage_reporting: [true]
  [compute]
    zone: [...]

Logs Directory: [...]
Last Log File: [...]

Original issue reported on code.google.com by gabipetr...@gmail.com on 14 Dec 2015 at 12:51

GoogleCodeExporter commented 8 years ago
Thanks for reporting the issue.

--format flag effects console output format, and is not related to any 
particular command. [gcloud dns record-set export] command supports only yaml 
format.

The documentation for the command can be more clear. So will keep this issue 
open to address that.

Original comment by che...@google.com on 14 Dec 2015 at 1:27

GoogleCodeExporter commented 8 years ago

Original comment by jsche...@google.com on 14 Mar 2016 at 8:45