1. 02 8月, 2016 32 次提交
  2. 01 8月, 2016 6 次提交
  3. 29 7月, 2016 2 次提交
    • M
      conf: Catch invalid memory model earlier · 1e058463
      Michal Privoznik 提交于
      Consider the following XML snippet:
      
          <memory model=''>
            <target>
              <size unit='KiB'>523264</size>
              <node>0</node>
            </target>
          </memory>
      
      Whats wrong you ask? The @model attribute. This should result in
      an error thrown into users faces during virDomainDefine phase.
      Except it doesn't. The XML validation catches this error, but if
      users chose to ignore that, they will end up with invalid XML.
      Well, they won't be able to start the machine - that's when error
      is produced currently. But it would be nice if we could catch the
      error like this earlier.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1e058463
    • E
      admin: Fix default uri config option name s/admin_uri_default/uri_default · f5f32bcd
      Erik Skultety 提交于
      The original name 'admin_uri_default' was introduced to our code by commit
      dbecb87f. However, at that time we already had a separate config file for
      admin library but the commit mentioned above didn't properly adjust the
      config's option name. The result is that when we're loading the config, we
      check a non-existent config option (there's not much to do with the URIs
      anyway, since we only allow local connection). Additionally, virt-admin's man
      page documents, that the default URI can be altered by setting
      admin_uri_default option. So the fix proposed by this patch leaves the
      libvirt-admin.conf as is and adjusts the naming in the code as well as in the
      virt-admin's man page.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      f5f32bcd