mirror of https://github.com/knative/client.git
Remove namespace from args (#386)
This commit is contained in:
parent
9625b5f4c5
commit
04a55b27f2
|
|
@ -84,7 +84,7 @@ func NewServiceCreateCommand(p *commands.KnParams) *cobra.Command {
|
|||
return err
|
||||
}
|
||||
|
||||
serviceExists, err := serviceExists(client, name, namespace)
|
||||
serviceExists, err := serviceExists(client, name)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -184,7 +184,7 @@ func replaceService(client v1alpha1.KnClient, service *serving_v1alpha1_api.Serv
|
|||
}
|
||||
}
|
||||
|
||||
func serviceExists(client v1alpha1.KnClient, name string, namespace string) (bool, error) {
|
||||
func serviceExists(client v1alpha1.KnClient, name string) (bool, error) {
|
||||
_, err := client.GetService(name)
|
||||
if api_errors.IsNotFound(err) {
|
||||
return false, nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue