Correct error message and fix typo

This commit is contained in:
Sergiu Marsavela (smarsave) 2019-01-20 00:46:53 +01:00
parent 3a87b1e015
commit 8d2c8fc3d8
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ func NewCmdCreateCluster(f *util.Factory, out io.Writer) *cobra.Command {
if cloudup.AlphaAllowOpenstack.Enabled() {
// Openstack flags
cmd.Flags().StringVar(&options.OpenstackExternalNet, "os-ext-net", options.OpenstackExternalNet, "The name of the external network to use with the openstack router")
cmd.Flags().BoolVar(&options.OpenstackStorageIgnoreAZ, "os-kubelet-ignore-az", options.OpenstackStorageIgnoreAZ, "If true kubernetes may attach volumes accross availability zones")
cmd.Flags().BoolVar(&options.OpenstackStorageIgnoreAZ, "os-kubelet-ignore-az", options.OpenstackStorageIgnoreAZ, "If true kubernetes may attach volumes across availability zones")
}
return cmd

View File

@ -30,7 +30,7 @@ func (c *openstackCloud) GetFloatingIP(id string) (fip *floatingips.FloatingIP,
fip, err = floatingips.Get(c.ComputeClient(), id).Extract()
if err != nil {
return false, fmt.Errorf("CreateFloatingIP: create floating IP failed: %v", err)
return false, fmt.Errorf("GetFloatingIP: fetching floating IP failed: %v", err)
}
return true, nil
})