Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Jun 15, 2024
1 parent e13533b commit a4245ad
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 682 deletions.
60 changes: 31 additions & 29 deletions cmd/distro.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ var distroAddCmd = &cobra.Command{
var newDistro cobbler.Distro
// internal fields (ctime, mtime, depth, uid, source-repos, tree-build-time) cannot be modified
newDistro.Arch, _ = cmd.Flags().GetString("arch")
newDistro.BootFiles, _ = cmd.Flags().GetString("boot-files")
newDistro.BootLoader, _ = cmd.Flags().GetString("boot-loaders")
newDistro.BootFiles, _ = cmd.Flags().GetStringArray("boot-files")
newDistro.BootLoaders, _ = cmd.Flags().GetStringArray("boot-loaders")
newDistro.Breed, _ = cmd.Flags().GetString("breed")
newDistro.Comment, _ = cmd.Flags().GetString("comment")
newDistro.FetchableFiles, _ = cmd.Flags().GetString("fetchable-files")
newDistro.FetchableFiles, _ = cmd.Flags().GetStringArray("fetchable-files")
newDistro.Initrd, _ = cmd.Flags().GetString("initrd")
newDistro.Kernel, _ = cmd.Flags().GetString("kernel")
newDistro.KernelOptions, _ = cmd.Flags().GetString("kernel-options")
newDistro.KernelOptionsPost, _ = cmd.Flags().GetString("kernel-options-post")
newDistro.KernelOptions, _ = cmd.Flags().GetStringArray("kernel-options")
newDistro.KernelOptionsPost, _ = cmd.Flags().GetStringArray("kernel-options-post")
newDistro.MGMTClasses, _ = cmd.Flags().GetStringArray("mgmt-classes")
newDistro.Name, _ = cmd.Flags().GetString("name")
newDistro.OSVersion, _ = cmd.Flags().GetString("os-version")
newDistro.Owners, _ = cmd.Flags().GetStringArray("owners")
newDistro.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
newDistro.TemplateFiles, _ = cmd.Flags().GetString("template-files")
// newDistro.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
newDistro.TemplateFiles, _ = cmd.Flags().GetStringArray("template-files")

distro, err = Client.CreateDistro(newDistro)

Expand Down Expand Up @@ -95,13 +95,13 @@ var distroEditCmd = &cobra.Command{
if tmpArgs != "" {
updateDistro.Arch, _ = cmd.Flags().GetString("arch")
}
tmpArgs, _ = cmd.Flags().GetString("boot-files")
if tmpArgs != "" {
updateDistro.BootFiles, _ = cmd.Flags().GetString("boot-files")
var tmpArgsArray, _ = cmd.Flags().GetStringArray("boot-files")
if len(tmpArgsArray) > 0 {
updateDistro.BootFiles, _ = cmd.Flags().GetStringArray("boot-files")
}
tmpArgs, _ = cmd.Flags().GetString("boot-loaders")
if tmpArgs != "" {
updateDistro.BootLoader, _ = cmd.Flags().GetString("boot-loaders")
tmpArgsArray, _ = cmd.Flags().GetStringArray("boot-loaders")
if len(tmpArgsArray) > 0 {
updateDistro.BootLoaders, _ = cmd.Flags().GetStringArray("boot-loaders")
}
tmpArgs, _ = cmd.Flags().GetString("breed")
if tmpArgs != "" {
Expand All @@ -111,9 +111,9 @@ var distroEditCmd = &cobra.Command{
if tmpArgs != "" {
updateDistro.Comment, _ = cmd.Flags().GetString("comment")
}
tmpArgs, _ = cmd.Flags().GetString("fetchable-files")
if tmpArgs != "" {
updateDistro.FetchableFiles, _ = cmd.Flags().GetString("fetchable-files")
tmpArgsArray, _ = cmd.Flags().GetStringArray("fetchable-files")
if len(tmpArgsArray) > 0 {
updateDistro.FetchableFiles, _ = cmd.Flags().GetStringArray("fetchable-files")
}
tmpArgs, _ = cmd.Flags().GetString("initrd")
if tmpArgs != "" {
Expand All @@ -123,13 +123,13 @@ var distroEditCmd = &cobra.Command{
if tmpArgs != "" {
updateDistro.Kernel, _ = cmd.Flags().GetString("kernel")
}
tmpArgs, _ = cmd.Flags().GetString("kernel-options")
if tmpArgs != "" {
updateDistro.KernelOptions, _ = cmd.Flags().GetString("kernel-options")
tmpArgsArray, _ = cmd.Flags().GetStringArray("kernel-options")
if len(tmpArgsArray) > 0 {
updateDistro.KernelOptions, _ = cmd.Flags().GetStringArray("kernel-options")
}
tmpArgs, _ = cmd.Flags().GetString("kernel-options-post")
if tmpArgs != "" {
updateDistro.KernelOptionsPost, _ = cmd.Flags().GetString("kernel-options-post")
tmpArgsArray, _ = cmd.Flags().GetStringArray("kernel-options-post")
if len(tmpArgsArray) > 0 {
updateDistro.KernelOptionsPost, _ = cmd.Flags().GetStringArray("kernel-options-post")
}
tmpArgs, _ = cmd.Flags().GetString("mgmt-classes")
if tmpArgs != "" {
Expand All @@ -147,13 +147,15 @@ var distroEditCmd = &cobra.Command{
if tmpArgs != "" {
updateDistro.Owners, _ = cmd.Flags().GetStringArray("owners")
}
tmpArgs, _ = cmd.Flags().GetString("redhat-management-key")
if tmpArgs != "" {
updateDistro.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
}
tmpArgs, _ = cmd.Flags().GetString("template-files")
if tmpArgs != "" {
updateDistro.TemplateFiles, _ = cmd.Flags().GetString("template-files")
/*
tmpArgs, _ = cmd.Flags().GetString("redhat-management-key")
if tmpArgs != "" {
updateDistro.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
}
*/
tmpArgsArray, _ = cmd.Flags().GetStringArray("template-files")
if len(tmpArgsArray) > 0 {
updateDistro.TemplateFiles, _ = cmd.Flags().GetStringArray("template-files")
}

err = Client.UpdateDistro(updateDistro)
Expand Down
76 changes: 39 additions & 37 deletions cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ var profileAddCmd = &cobra.Command{
var newProfile cobbler.Profile
// internal fields (ctime, mtime, uid, depth, repos-enabled) cannot be modified
newProfile.Autoinstall, _ = cmd.Flags().GetString("autoinstall")
newProfile.AutoinstallMeta, _ = cmd.Flags().GetString("autoinstall-meta")
newProfile.BootFiles, _ = cmd.Flags().GetString("bootfiles")
newProfile.AutoinstallMeta, _ = cmd.Flags().GetStringArray("autoinstall-meta")
newProfile.BootFiles, _ = cmd.Flags().GetStringArray("bootfiles")
newProfile.Comment, _ = cmd.Flags().GetString("comment")
newProfile.DHCPTag, _ = cmd.Flags().GetString("dhcp-tag")
newProfile.Distro, _ = cmd.Flags().GetString("distro")
newProfile.EnableGPXE, _ = cmd.Flags().GetBool("enable-ipxe")
newProfile.EnableMenu, _ = cmd.Flags().GetBool("enable-menu")
newProfile.FetchableFiles, _ = cmd.Flags().GetString("fetchable-files")
newProfile.KernelOptions, _ = cmd.Flags().GetString("kernel-options")
newProfile.KernelOptionsPost, _ = cmd.Flags().GetString("kernel-options-post")
newProfile.FetchableFiles, _ = cmd.Flags().GetStringArray("fetchable-files")
newProfile.KernelOptions, _ = cmd.Flags().GetStringArray("kernel-options")
newProfile.KernelOptionsPost, _ = cmd.Flags().GetStringArray("kernel-options-post")
newProfile.MGMTClasses, _ = cmd.Flags().GetStringArray("mgmt-classes")
newProfile.MGMTParameters, _ = cmd.Flags().GetString("mgmt-parameters")
newProfile.Name, _ = cmd.Flags().GetString("name")
newProfile.NameServers, _ = cmd.Flags().GetStringArray("name-servers")
newProfile.NameServersSearch, _ = cmd.Flags().GetStringArray("name-servers-search")
newProfile.NextServer, _ = cmd.Flags().GetString("next-servers")
newProfile.NextServerv4, _ = cmd.Flags().GetString("next-server-v4")
newProfile.Owners, _ = cmd.Flags().GetStringArray("owners")
newProfile.Proxy, _ = cmd.Flags().GetString("proxy")
newProfile.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
newProfile.Repos, _ = cmd.Flags().GetString("repos")
// newProfile.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
newProfile.Repos, _ = cmd.Flags().GetStringArray("repos")
newProfile.Server, _ = cmd.Flags().GetString("server")
newProfile.TemplateFiles, _ = cmd.Flags().GetString("template-files")
newProfile.TemplateFiles, _ = cmd.Flags().GetStringArray("template-files")
newProfile.VirtAutoBoot, _ = cmd.Flags().GetString("virt-auto-boot")
newProfile.VirtBridge, _ = cmd.Flags().GetString("virt-bridge")
newProfile.VirtCPUs, _ = cmd.Flags().GetString("virt-cpus")
Expand Down Expand Up @@ -116,13 +116,13 @@ var profileEditCmd = &cobra.Command{
if tmpArgs != "" {
updateProfile.Autoinstall, _ = cmd.Flags().GetString("autoinstall")
}
tmpArgs, _ = cmd.Flags().GetString("autoinstall-meta")
if tmpArgs != "" {
updateProfile.AutoinstallMeta, _ = cmd.Flags().GetString("autoinstall-meta")
var tmpArgsArray, _ = cmd.Flags().GetStringArray("autoinstall-meta")
if len(tmpArgsArray) > 0 {
updateProfile.AutoinstallMeta, _ = cmd.Flags().GetStringArray("autoinstall-meta")
}
tmpArgs, _ = cmd.Flags().GetString("bootfiles")
if tmpArgs != "" {
updateProfile.BootFiles, _ = cmd.Flags().GetString("bootfiles")
tmpArgsArray, _ = cmd.Flags().GetStringArray("bootfiles")
if len(tmpArgsArray) > 0 {
updateProfile.BootFiles, _ = cmd.Flags().GetStringArray("bootfiles")
}
tmpArgs, _ = cmd.Flags().GetString("comment")
if tmpArgs != "" {
Expand All @@ -146,19 +146,19 @@ var profileEditCmd = &cobra.Command{
updateProfile.EnableMenu, _ = cmd.Flags().GetBool("enable-menu")
}
*/
tmpArgs, _ = cmd.Flags().GetString("fetchable-files")
if tmpArgs != "" {
updateProfile.FetchableFiles, _ = cmd.Flags().GetString("fetchable-files")
tmpArgsArray, _ = cmd.Flags().GetStringArray("fetchable-files")
if len(tmpArgsArray) > 0 {
updateProfile.FetchableFiles, _ = cmd.Flags().GetStringArray("fetchable-files")
}
tmpArgs, _ = cmd.Flags().GetString("kernel-options")
if tmpArgs != "" {
updateProfile.KernelOptions, _ = cmd.Flags().GetString("kernel-options")
tmpArgsArray, _ = cmd.Flags().GetStringArray("kernel-options")
if len(tmpArgsArray) > 0 {
updateProfile.KernelOptions, _ = cmd.Flags().GetStringArray("kernel-options")
}
tmpArgs, _ = cmd.Flags().GetString("kernel-options-post")
if tmpArgs != "" {
updateProfile.KernelOptionsPost, _ = cmd.Flags().GetString("kernel-options-post")
tmpArgsArray, _ = cmd.Flags().GetStringArray("kernel-options-post")
if len(tmpArgsArray) > 0 {
updateProfile.KernelOptionsPost, _ = cmd.Flags().GetStringArray("kernel-options-post")
}
var tmpArgsArray, _ = cmd.Flags().GetStringArray("mgmt-classes")
tmpArgsArray, _ = cmd.Flags().GetStringArray("mgmt-classes")
if len(tmpArgsArray) > 0 {
updateProfile.MGMTClasses, _ = cmd.Flags().GetStringArray("mgmt-classes")
}
Expand All @@ -178,9 +178,9 @@ var profileEditCmd = &cobra.Command{
if len(tmpArgsArray) > 0 {
updateProfile.NameServersSearch, _ = cmd.Flags().GetStringArray("name-servers-search")
}
tmpArgs, _ = cmd.Flags().GetString("next-servers")
tmpArgs, _ = cmd.Flags().GetString("next-server-v4")
if tmpArgs != "" {
updateProfile.NextServer, _ = cmd.Flags().GetString("next-servers")
updateProfile.NextServerv4, _ = cmd.Flags().GetString("next-server-v4")
}
tmpArgsArray, _ = cmd.Flags().GetStringArray("owners")
if len(tmpArgsArray) > 0 {
Expand All @@ -190,21 +190,23 @@ var profileEditCmd = &cobra.Command{
if tmpArgs != "" {
updateProfile.Proxy, _ = cmd.Flags().GetString("proxy")
}
tmpArgs, _ = cmd.Flags().GetString("redhat-management-key")
if tmpArgs != "" {
updateProfile.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
}
tmpArgs, _ = cmd.Flags().GetString("repos")
if tmpArgs != "" {
updateProfile.Repos, _ = cmd.Flags().GetString("repos")
/*
* tmpArgs, _ = cmd.Flags().GetString("redhat-management-key")
* if tmpArgs != "" {
* updateProfile.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
* }
*/
tmpArgsArray, _ = cmd.Flags().GetStringArray("repos")
if len(tmpArgsArray) > 0 {
updateProfile.Repos, _ = cmd.Flags().GetStringArray("repos")
}
tmpArgs, _ = cmd.Flags().GetString("server")
if tmpArgs != "" {
updateProfile.Server, _ = cmd.Flags().GetString("server")
}
tmpArgs, _ = cmd.Flags().GetString("template-files")
if tmpArgs != "" {
updateProfile.TemplateFiles, _ = cmd.Flags().GetString("template-files")
tmpArgsArray, _ = cmd.Flags().GetStringArray("template-files")
if len(tmpArgsArray) > 0 {
updateProfile.TemplateFiles, _ = cmd.Flags().GetStringArray("template-files")
}
tmpArgs, _ = cmd.Flags().GetString("virt-auto-boot")
if tmpArgs != "" {
Expand Down
10 changes: 5 additions & 5 deletions cmd/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var repoAddCmd = &cobra.Command{
newRepo.Breed, _ = cmd.Flags().GetString("breed")
newRepo.Comment, _ = cmd.Flags().GetString("comment")
newRepo.CreateRepoFlags, _ = cmd.Flags().GetString("createrepo-flags")
newRepo.Environment, _ = cmd.Flags().GetString("environment")
newRepo.Environment, _ = cmd.Flags().GetStringArray("environment")
newRepo.KeepUpdated, _ = cmd.Flags().GetBool("keep-updated")
newRepo.Mirror, _ = cmd.Flags().GetString("mirror")
// not implemented in Cobbler yet
Expand Down Expand Up @@ -123,9 +123,9 @@ var repoEditCmd = &cobra.Command{
if tmpArgs != "" {
updateRepo.CreateRepoFlags, _ = cmd.Flags().GetString("createrepo-flags")
}
tmpArgs, _ = cmd.Flags().GetString("environment")
if tmpArgs != "" {
updateRepo.Environment, _ = cmd.Flags().GetString("environment")
var tmpArgsArray, _ = cmd.Flags().GetStringArray("environment")
if len(tmpArgsArray) > 0 {
updateRepo.Environment, _ = cmd.Flags().GetStringArray("environment")
}
// TODO
/* tmpArgs, _ = cmd.Flags().GetBool("keep-updated")
Expand All @@ -147,7 +147,7 @@ var repoEditCmd = &cobra.Command{
if tmpArgs != "" {
updateRepo.Name, _ = cmd.Flags().GetString("name")
}
var tmpArgsArray, _ = cmd.Flags().GetStringArray("owners")
tmpArgsArray, _ = cmd.Flags().GetStringArray("owners")
if len(tmpArgsArray) > 0 {
updateRepo.Owners, _ = cmd.Flags().GetStringArray("owners")
}
Expand Down
58 changes: 30 additions & 28 deletions cmd/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@ var systemAddCmd = &cobra.Command{

// internal fields (ctime, mtime, depth, uid, repos-enabled, ipv6-autoconfiguration) cannot be modified
newSystem.Autoinstall, _ = cmd.Flags().GetString("autoinstall")
newSystem.AutoinstallMeta, _ = cmd.Flags().GetString("autoinstall-meta")
newSystem.AutoinstallMeta, _ = cmd.Flags().GetStringArray("autoinstall-meta")
newSystem.BootFiles, _ = cmd.Flags().GetString("bootfiles")
newSystem.Comment, _ = cmd.Flags().GetString("comment")
newSystem.EnableGPXE, _ = cmd.Flags().GetBool("enable-ipxe")
newSystem.FetchableFiles, _ = cmd.Flags().GetString("fetchable-files")
newSystem.FetchableFiles, _ = cmd.Flags().GetStringArray("fetchable-files")
newSystem.Gateway, _ = cmd.Flags().GetString("gateway")
newSystem.Hostname, _ = cmd.Flags().GetString("hostname")
newSystem.Image, _ = cmd.Flags().GetString("image")
newSystem.IPv6DefaultDevice, _ = cmd.Flags().GetString("ipv6-default-device")
newSystem.KernelOptions, _ = cmd.Flags().GetString("kernel-options")
newSystem.KernelOptionsPost, _ = cmd.Flags().GetString("kernel-options-post")
newSystem.KernelOptions, _ = cmd.Flags().GetStringArray("kernel-options")
newSystem.KernelOptionsPost, _ = cmd.Flags().GetStringArray("kernel-options-post")
newSystem.MGMTClasses, _ = cmd.Flags().GetStringArray("mgmt-classes")
newSystem.MGMTParameters, _ = cmd.Flags().GetString("mgmt-parameters")
newSystem.Name, _ = cmd.Flags().GetString("name")
newSystem.NameServers, _ = cmd.Flags().GetStringArray("name-servers")
newSystem.NameServersSearch, _ = cmd.Flags().GetStringArray("name-servers-search")
newSystem.NetbootEnabled, _ = cmd.Flags().GetBool("netboot-enabled")
newSystem.NextServer, _ = cmd.Flags().GetString("next-servers")
newSystem.NextServerv4, _ = cmd.Flags().GetString("next-server-v4")
newSystem.Owners, _ = cmd.Flags().GetStringArray("owners")
newSystem.PowerAddress, _ = cmd.Flags().GetString("power-address")
newSystem.PowerID, _ = cmd.Flags().GetString("power-id")
Expand All @@ -64,9 +64,9 @@ var systemAddCmd = &cobra.Command{
newSystem.PowerUser, _ = cmd.Flags().GetString("power-user")
newSystem.Profile, _ = cmd.Flags().GetString("profile")
newSystem.Proxy, _ = cmd.Flags().GetString("proxy")
newSystem.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
// newSystem.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
newSystem.Status, _ = cmd.Flags().GetString("status")
newSystem.TemplateFiles, _ = cmd.Flags().GetString("template-files")
newSystem.TemplateFiles, _ = cmd.Flags().GetStringArray("template-files")
newSystem.VirtAutoBoot, _ = cmd.Flags().GetString("virt-auto-boot")
newSystem.VirtCPUs, _ = cmd.Flags().GetString("virt-cpus")
newSystem.VirtDiskDriver, _ = cmd.Flags().GetString("virt-disk-driver")
Expand Down Expand Up @@ -156,9 +156,9 @@ var systemEditCmd = &cobra.Command{
if tmpArgs != "" {
updateSystem.Autoinstall, _ = cmd.Flags().GetString("autoinstall")
}
tmpArgs, _ = cmd.Flags().GetString("autoinstall-meta")
if tmpArgs != "" {
updateSystem.AutoinstallMeta, _ = cmd.Flags().GetString("autoinstall-meta")
var tmpArgsArray, _ = cmd.Flags().GetStringArray("autoinstall-meta")
if len(tmpArgsArray) > 0 {
updateSystem.AutoinstallMeta, _ = cmd.Flags().GetStringArray("autoinstall-meta")
}
tmpArgs, _ = cmd.Flags().GetString("bootfiles")
if tmpArgs != "" {
Expand All @@ -175,9 +175,9 @@ var systemEditCmd = &cobra.Command{
updateSystem.EnableGPXE, _ = cmd.Flags().GetBool("enable-ipxe")
}
*/
tmpArgs, _ = cmd.Flags().GetString("fetchable-files")
if tmpArgs != "" {
updateSystem.FetchableFiles, _ = cmd.Flags().GetString("fetchable-files")
tmpArgsArray, _ = cmd.Flags().GetStringArray("fetchable-files")
if len(tmpArgsArray) > 0 {
updateSystem.FetchableFiles, _ = cmd.Flags().GetStringArray("fetchable-files")
}
tmpArgs, _ = cmd.Flags().GetString("gateway")
if tmpArgs != "" {
Expand All @@ -195,15 +195,15 @@ var systemEditCmd = &cobra.Command{
if tmpArgs != "" {
updateSystem.IPv6DefaultDevice, _ = cmd.Flags().GetString("ipv6-default-device")
}
tmpArgs, _ = cmd.Flags().GetString("kernel-options")
if tmpArgs != "" {
updateSystem.KernelOptions, _ = cmd.Flags().GetString("kernel-options")
tmpArgsArray, _ = cmd.Flags().GetStringArray("kernel-options")
if len(tmpArgsArray) > 0 {
updateSystem.KernelOptions, _ = cmd.Flags().GetStringArray("kernel-options")
}
tmpArgs, _ = cmd.Flags().GetString("kernel-options-post")
if tmpArgs != "" {
updateSystem.KernelOptionsPost, _ = cmd.Flags().GetString("kernel-options-post")
tmpArgsArray, _ = cmd.Flags().GetStringArray("kernel-options-post")
if len(tmpArgsArray) > 0 {
updateSystem.KernelOptionsPost, _ = cmd.Flags().GetStringArray("kernel-options-post")
}
var tmpArgsArray, _ = cmd.Flags().GetStringArray("mgmt-classes")
tmpArgsArray, _ = cmd.Flags().GetStringArray("mgmt-classes")
if len(tmpArgsArray) > 0 {
updateSystem.MGMTClasses, _ = cmd.Flags().GetStringArray("mgmt-classes")
}
Expand Down Expand Up @@ -232,7 +232,7 @@ var systemEditCmd = &cobra.Command{
*/
tmpArgs, _ = cmd.Flags().GetString("next-servers")
if tmpArgs != "" {
updateSystem.NextServer, _ = cmd.Flags().GetString("next-servers")
updateSystem.NextServerv4, _ = cmd.Flags().GetString("next-server-v4")
}
tmpArgsArray, _ = cmd.Flags().GetStringArray("owners")
if len(tmpArgsArray) > 0 {
Expand Down Expand Up @@ -266,17 +266,19 @@ var systemEditCmd = &cobra.Command{
if tmpArgs != "" {
updateSystem.Proxy, _ = cmd.Flags().GetString("proxy")
}
tmpArgs, _ = cmd.Flags().GetString("redhat-management-key")
if tmpArgs != "" {
updateSystem.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
}
/*
tmpArgs, _ = cmd.Flags().GetString("redhat-management-key")
if tmpArgs != "" {
updateSystem.RedHatManagementKey, _ = cmd.Flags().GetString("redhat-management-key")
}
*/
tmpArgs, _ = cmd.Flags().GetString("status")
if tmpArgs != "" {
updateSystem.Status, _ = cmd.Flags().GetString("status")
}
tmpArgs, _ = cmd.Flags().GetString("template-files")
if tmpArgs != "" {
updateSystem.TemplateFiles, _ = cmd.Flags().GetString("template-files")
tmpArgsArray, _ = cmd.Flags().GetStringArray("template-files")
if len(tmpArgsArray) > 0 {
updateSystem.TemplateFiles, _ = cmd.Flags().GetStringArray("template-files")
}
tmpArgs, _ = cmd.Flags().GetString("virt-auto-boot")
if tmpArgs != "" {
Expand Down
Loading

0 comments on commit a4245ad

Please sign in to comment.