Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails if not global is defined #104

Open
npf opened this issue Apr 21, 2017 · 0 comments
Open

build fails if not global is defined #104

npf opened this issue Apr 21, 2017 · 0 comments
Labels

Comments

@npf
Copy link
Contributor

npf commented Apr 21, 2017

---                                                                              
global:                                                                          
                                                                                 
bootstrap:                                                                       
  - step:                                                                        
    - microstep:                                                                 
      - exec_local: echo A                                                       
                                                                                 
setup:                                                                           
                                                                                 
export: 

gives:

$kameleon build test.yaml
Error : undefined method `keys' for nil:NilClass
Unfortunately, a fatal error has occurred : undefined method `keys' for nil:NilClass.
Use --debug option for more details

while:

---                                                                              
global:                                                                          
  var: 1                                                                         
bootstrap:                                                                       
  - step:                                                                        
    - microstep:                                                                 
      - exec_local: echo A                                                       
                                                                                 
setup:                                                                           
                                                                                 
export:

gives:

$ kameleon build test.yaml
Creating kameleon build directory : /home/neyron/scm/OAR/kameleon-recipes/build/test
Starting build recipe 'test.yaml'
Step _init_bootstrap took: 0 secs
Step 1 : bootstrap/step/microstep
--> Running the step...
Starting command: "bash"
[local] The local_context has been initialized
[local] A
Step step took: 1 secs
Step _clean_bootstrap took: 0 secs
Step _init_setup took: 0 secs
Step _clean_setup took: 0 secs
Step _init_export took: 0 secs
Step _clean_export took: 0 secs

Successfully built 'test.yaml'
Total duration : 1 secs
@npf npf added the bug label Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant