# File lib/fog/orchestration/openstack/requests/create_stack.rb, line 19
        def create_stack(arg1, arg2 = nil)
          if arg1.kind_of?(Hash)
            # Normal use: create_stack(options)
            options = arg1
          else
            # Deprecated: create_stack(stack_name, options = {})
            Fog::Logger.deprecation("#create_stack(stack_name, options) is deprecated, use #create_stack(options) instead [light_black](#{caller.first})[/]")
            options = {
              :stack_name => arg1
            }.merge(arg2.nil? ? {} : arg2)
          end

          request(
            :expects => 201,
            :path    => 'stacks',
            :method  => 'POST',
            :body    => Fog::JSON.encode(options)
          )
        end