Skip to content

ifw.repo.json - add name of repo #572

@stevie-sy

Description

@stevie-sy

With the cmdlet "New-IcingaRepository" we have to create a repo file. With the param "-name" we give them a name. Everything works fine. But the name isn't written into the JSON-file in plain text. If you're testing a lot after some time you don't remember the repo name. So it would be very helpful to have the name also in the Info-Part included.

e.g.

{
    "Info":  {
                 "LocalSource":  "C:\\Icinga\\Setup\\",
                 "RemoteSource":  "C:\\Icinga\\Setup\\",
                 "Created":  "2022/08/17 17:40:33",
                 "Updated":  "2022/08/17 17:40:33",
                 "RepoHash":  "086ACF9D81E483E24B3D2FDE62344F12CC2AAE6499E20914CF3C103E38787193",
		 "Name":   "TestRepo1"
             },
    "Packages":  {
                     "agent":  [
                                   {
                                       "Hash":  "CBC9447FD704910952731E9BCC979D5729906F1AA122C822583C38F2D1DF60EE",
                                       "Location":  "Icinga2-v2.13.5-x86_64.msi",
                                       "RelativePath":  true,
                                       "Version":  "2.13.5",
                                       "Snapshot":  false,
                                       "Architecture":  "x64"
                                   }
                               ]
                 }
}

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions