]> xenbits.xensource.com Git - people/gdunlap/xsatool.git/commitdiff
global: Refer to global SecurityMeta structure, not a local one
authorGeorge Dunlap <george.dunlap@citrix.com>
Thu, 11 May 2017 12:34:24 +0000 (13:34 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 11 May 2017 12:43:32 +0000 (13:43 +0100)
In part so that the testing harness can see what's going on afterwards.

While we're here add a newline to the "manually add XSAs" message.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
global.go

index 74533cc7bc6173d7b36a5d839e213e4b8de52be2..c591b95582f373ad2668e09b370f4d673f0372b1 100644 (file)
--- a/global.go
+++ b/global.go
@@ -17,7 +17,7 @@ func MainGlobalUpdate(unused *XSAMeta, args []string) int {
        var limit XenVersion
        init := false
 
-       var sm SecurityMeta
+       sm := &G.config.Security
 
        err = sm.Load()
        if err != nil {
@@ -71,7 +71,7 @@ func MainGlobalUpdate(unused *XSAMeta, args []string) int {
 
        if init {
                fmt.Printf("New global.meta created.  You probably need to" +
-                       "manually enter outstanding XSAs for each version.")
+                       "manually enter outstanding XSAs for each version.\n")
        }
 
        err = sm.Save()