Fix : Prints empty list in json/yaml is no repositories are present (#7949)
Fix : Prints empty list in json/yaml is no repositories are present (#7949)

* Prints empty repolist in json/yaml if there are no repos and output format is given as json/yaml rather that printing the error msg "no repositories to show"

Signed-off-by: Anshul Verma <c42a65f4e6da3c04f4dd09046afc7e84697bb6f0@gmail.com>

* Prints empty repolist in json/yaml if there are no repos and output format is given as json/yaml rather that printing the error msg "no repositories to show"

Signed-off-by: Anshul Verma <c42a65f4e6da3c04f4dd09046afc7e84697bb6f0@gmail.com>
michelleN/deployment-manager,helm/helm,bacongobbler/helm,michelleN/deployment-manager,helm/helm,adamreese/helm,bacongobbler/helm,michelleN/deployment-manager,michelleN/deployment-manager,adamreese/helm