You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by "Avia Efrat (JIRA)" <ji...@apache.org> on 2017/05/09 14:34:04 UTC

[jira] [Resolved] (ARIA-210) Relative paths may cause issues in `aria service-templates` commands

     [ https://issues.apache.org/jira/browse/ARIA-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Avia Efrat resolved ARIA-210.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 0.1.0

> Relative paths may cause issues in `aria service-templates` commands
> --------------------------------------------------------------------
>
>                 Key: ARIA-210
>                 URL: https://issues.apache.org/jira/browse/ARIA-210
>             Project: AriaTosca
>          Issue Type: Bug
>            Reporter: Ran Ziv
>            Assignee: Avia Efrat
>             Fix For: 0.1.0
>
>
> The CLI commands {{aria service-templates store}} and {{aria service-templates create-archive}} use the {{os.path.dirname}} method to get the directory of the main service-template file.
> In the former ({{store}} command) this causes errors when the user is already in the directory of the main service-template file and passes the file directly (e.g. {{aria service-templates store service-template.yaml my-service-template}})) - It'll fail when trying to copy the service-template's resources like so:
> {{cannot copy tree '': not a directory}}
> In the latter ({{create-archive}}), any relative path usage will result in an error claiming the file does not exist.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)