Created
          March 1, 2011 17:05 
        
      - 
      
- 
        Save romanbarczynski/849467 to your computer and use it in GitHub Desktop. 
    now it's working
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module MCollective | |
| module Agent | |
| class Mysql<RPC::Agent | |
| metadata .... | |
| action "createdb" do | |
| status = 'Unknown' | |
| begin | |
| >> code that fails for unknown reason << | |
| rescue StandardError => e | |
| status = "Error: #{e}" | |
| end | |
| reply['status'] = status | |
| end | |
| end | |
| end | |
| end | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment