From fbdece2762d13e63739aceb2ee7a0a642f506b97 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Wed, 25 Jun 2014 14:28:11 -0700 Subject: [PATCH] coreos-cloudinit: restrict convert-netconf to configdrive --- coreos-cloudinit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreos-cloudinit.go b/coreos-cloudinit.go index 9e89c4b..0f5c143 100644 --- a/coreos-cloudinit.go +++ b/coreos-cloudinit.go @@ -55,8 +55,8 @@ func main() { os.Exit(0) } - if convertNetconf != "" && sources.configDrive == "" && !sources.metadataService { - fmt.Println("-convert-netconf flag requires -from-configdrive or -from-metadata-service") + if convertNetconf != "" && sources.configDrive == "" { + fmt.Println("-convert-netconf flag requires -from-configdrive") os.Exit(1) }