Prasanna Santhanam created CLOUDSTACK-1042:
----------------------------------------------

             Summary: apidoc: copyIsoCmd has required arguments listed twice 
resulting in duplicate attributes in marvin
                 Key: CLOUDSTACK-1042
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1042
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: API
            Reporter: Prasanna Santhanam


on mvn -pl :cloud-apidoc I get the following copyIso.xml

<command>
  <command>
    <name>copyIso</name>
    <description>Copies an iso from one zone to another.</description>
    <isAsync>true</isAsync>
    <request>
      <arg>
        <name>id</name>
        <description>Template ID.</description>
        <required>true</required>
      </arg>
      <arg>
        <name>destzoneid</name>
        <description>ID of the zone the template is being copied 
to.</description>
        <required>true</required>
      </arg>
      <arg>
        <name>destzoneid</name>
        <description>ID of the zone the template is being copied 
to.</description>
        <required>true</required>
      </arg>
      <arg>
        <name>sourcezoneid</name>
        <description>ID of the zone the template is currently hosted 
on.</description>
        <required>true</required>
      </arg>
      <arg>
        <name>sourcezoneid</name>
        <description>ID of the zone the template is currently hosted 
on.</description>
        <required>true</required>
      </arg>
      <arg>

Notice: sourcezoneid and destzoneid are repeated twice. This results the 
following marvin entity:

 5 class copyIsoCmd (baseCmd):
  6     def __init__(self):
  7         self.isAsync = "true"
  8         """Template ID."""
  9         """Required"""
 10         self.id = None
 11         """ID of the zone the template is being copied to."""
 12         """Required"""
 13         self.destzoneid = None
 14         """ID of the zone the template is being copied to."""
 15         """Required"""
 16         self.destzoneid = None
 17         """ID of the zone the template is currently hosted on."""
 18         """Required"""
 19         self.sourcezoneid = None
 20         """ID of the zone the template is currently hosted on."""
 21         """Required"""
 22         self.sourcezoneid = None


This is because CopyIso <- CopyTemplate <- BaseAsyncCmd and XmlDocWriter 
perhaps need to check this exceptional case

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to