You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/04/12 14:48:08 UTC

[GitHub] [camel-k] oscerd commented on issue #2203: Kamelet yaml will be stored with wrong order of fields

oscerd commented on issue #2203:
URL: https://github.com/apache/camel-k/issues/2203#issuecomment-817875164


   This seems to work
   
   ```
   - from:
       uri: 'timer:azure-storageope'
       parameters:
         period: '{{period}}'
       steps:
         - choice:
             when:
             - simple: "${header[file]}"
               steps:
               - set-header:
                   name: CamelAzureStorageBlobBlobName
                   simple: "${header[file]}"
             - simple: "${header[ce-file]}"
               steps:
               - set-header:
                   name: CamelAzureStorageBlobBlobName
                   simple: "${header[ce-file]}"
             otherwise:
               steps:
               - set-header:
                   name: CamelAzureStorageBlobBlobName
                   simple: "${exchangeId}"
         - to:
             uri: 'azure-storage-blob://xxx/xxx'
             parameters:
               operation: 'listBlobs'
               accessKey: 'xxxxx'
         - to:
             uri: "log:info"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org